Oracle DBA Forum  

Вернуться   Oracle DBA Forum > Oracle University Official Study Notes (ENG) > Oracle 10g Java Programming > Oracle 10g Java Programming

Ответ
 
Опции темы Опции просмотра
  #1  
Старый 14.01.2010, 01:34
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию 06 Building Applications with Oracle JDeveloper 10g

__________________
Чат форума (требуется аккаунт на github или twitter)
Ответить с цитированием
  #2  
Старый 14.01.2010, 01:35
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Objectives




Lesson Aim

This lesson introduces you to Oracle JDeveloper. You learn how to create new projects and applications, and how to use the various panes in the IDE to edit source code and modify design of the user interface frame.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:45.
Ответить с цитированием
  #3  
Старый 14.01.2010, 01:35
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию What Is Oracle JDeveloper 10g?



Building Applications with Oracle JDeveloper 10g

You can use Oracle JDeveloper 10g to build a number of different types of Java components. This lesson focuses on using the JDeveloper IDE for building applications.

Wizard Driven

A wizard is a graphical tool that guides you step-by-step through the process of defining a new element in the IDE. Oracle JDeveloper 10g provides a number of wizards, including:

Application Workspace Wizard: Defines a new application and associated projects
Applet Wizard: Defines a new Java applet and adds it to the specified project
EJB Wizard: Defines a new Enterprise JavaBean (EJB) and adds it to the specified project
JSP Wizard: Defines a new JavaServer Page (JSP) and adds it to the specified project
HTTP Servlet Wizard: Defines a new servlet and adds it to the specified project


Design a User Interface

Oracle JDeveloper 10g provides an interface for designing the visual parts of your program. JDeveloper enables you to specify the following features of the user interface:

Size and position of controls
Properties for each control, such as labels, enabled or disabled status, font, and so on
Event handler methods
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:48.
Ответить с цитированием
  #4  
Старый 14.01.2010, 01:35
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Exploring the JDeveloper Environment




The Oracle JDeveloper 10g Environment

JDeveloper contains four major user interface components. These components are what you use to edit code, design and manage the user interface, and navigate around your program.


Component Palette

Properties are attributes that define how a component appears and responds at run time. In JDeveloper, you set a components initial properties during design time, and your code can change those properties at run time.


System Navigator

System Navigator is made up of two components. The Navigator pane shows a list of files or classes in a project. The files may be Java source files, .class files, graphics files, HTML, XML documents, and so on. The Structure pane lists all the methods, fields, and graphical user interface (GUI) components in a selected class.


Code Editor

Editors are where most of the work takes place; this is where you write code and design user interfaces. Open an editor by double-clicking the item you want to edit or view.


Property Inspector

Property Inspector is the window that shows the properties and events associated with a selected component in the design section of an editor.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:50.
Ответить с цитированием
  #5  
Старый 14.01.2010, 01:35
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Examining Workspaces




Application Organization

Oracle JDeveloper 10g uses a well-defined structure to manage Java programming applications. The structure is hierarchical and supports workspaces, projects, images, .html files, and so on.


Workspaces

Workspace is the highest level in the control structure. It is a view of all the objects you currently need, while you are working. A workspace keeps track of the projects you use and the environment settings while you are developing your Java program. When you open JDeveloper, the last workspace used is opened by default, so you can resume where you last stopped working.

Workspaces are stored in files with the extension .jws. You do not edit a workspace file directly. Whenever you save your workspace, you are prompted to save all the current open files. To save the open and modified files, select the Save or Save All option from the File menu.

Note: You can view the content of a workspace file by using any text editor.


Determining Workspaces

Consider workspaces to be a view into the objects currently used. You may choose to create workspaces, which include projects that were created in different workspaces. Workspace object groupings can be based around a business area (Accounts Payable, General Ledger, Accounts Receivable), the phase in a life cycle (analysis, design, deploy) or the structure of the application (UI, business logic, data structure).
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:52.
Ответить с цитированием
  #6  
Старый 14.01.2010, 01:35
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию What Are Projects?



Projects

JDeveloper projects organize file elements used to create your program. A project file has the file extension .jpr and keeps track of the source files, packages, classes, images, and other elements that may be needed for your program. You can add multiple projects to your workspace to easily access, modify, and reuse your source code. You can view the content of a project file by using any text editor.

Projects also manage environment variables such as the source and output paths used for compiling and running your program. Projects also maintain compiler, run time, and debugging options, so you can customize the behavior of those tools per project.

In the Navigator pane, projects are displayed as the second level in the hierarchy under the workspace.

When you select a .java or .html file in the System Navigator, the Structure pane displays the elements of the file in a tree format. For example, when you select a .java source file, the classes, interfaces, methods, and variables are displayed.

To edit source code, double-click the file in the navigation list to display the contents in the appropriate editor. The Structure pane can be used to quickly locate specific areas of code in your Java source files and browse the class hierarchy.

When you are working with the visual designer, the Structure pane displays the components of your user interface and their associated event handling methods in a hierarchical tree format.

Note: The italic font is used to indicate the file names that have not been saved yet.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:54.
Ответить с цитированием
  #7  
Старый 14.01.2010, 01:36
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Creating JDeveloper Items



New Elements

You can create any JDeveloper item from this window. The context for creating the item must be correct. You must have the correct element selected in the Category column to create the appropriate Item.

All J2SE libraries, used during development, must be available in the run-time environment.

While creating the workspace, you can define the paths used for the files stored. All the files are stored using the following convention:

workspace\project\package

Use the Filter By drop-down list to view specific types of elements.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:56.
Ответить с цитированием
  #8  
Старый 14.01.2010, 01:36
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Creating an Application Workspace



Creating an Application Workspace

The aim in this lesson is to create a simple Java application. The first step is to create a new application workspace that acts as a container for all the files in the application. The properties to be completed include:


Application Name

Enter a name for the application. This name is used to categorize all the files in your application.


Directory Name

Enter a top-level directory for the application or click Browse to locate one. This is where all your application files are stored during development.


Application Package Prefix

Enter a prefix for all packages associated with this application. The prefix you assign defines the root package for every project in the application.


Application Template

Select a template for the application. Click Manage Templates to edit an existing template or to create a new one. An application template provides a way to partition the application into projects that reflect a logical separation of the overall work. Each template provides a different structure to how the files are organized. For this course, use the Java Application [Java, Swing] template.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 12:58.
Ответить с цитированием
  #9  
Старый 14.01.2010, 01:36
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Specifying Project Details



Project Properties: Specifying Project Details

A variety of project properties can be created and modified. The properties are categorized and are accessible from the nodes on the left side of the pane.

The package name is the default for the project, so any Java source created in the project is automatically put in the specific package, because the package keyword is added to the source file with the name specified.

Note: The output directory is added as the first path in the classpath parameter for applications at compile and run time. In addition, together with this output directory, the libraries selected in the next screen of the wizard form the CLASSPATH for the code in this project.

In particular, also note that the package name is implicitly appended to the project source and output directories as the target directories for the saved source (.java) files and for the compiled (.class) files respectively.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 13:00.
Ответить с цитированием
  #10  
Старый 14.01.2010, 01:36
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,385
По умолчанию Selecting Additional Libraries



Project Properties: Selecting Libraries

In the Libraries Property, select the version of the J2SE you will be using. You can add any existing libraries and create and add new ones.

The libraries listed here are delivered by Oracle, Sun Microsystems, or third-party packages and classes. Typically, they are delivered as classes in a .jar file. Use the existing ones, or add your own.

Note: All the selected libraries become part of the project application CLASSPATH in addition to the classes compiled into the project output directory. All the classes in the libraries and output directory will need to be deployed with the application.
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 20.04.2010 в 13:01.
Ответить с цитированием
Ответ
Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 23:54. Часовой пояс GMT +3.


Powered by vBulletin®