Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright  Oracle Corporation, 1998. All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.

Similar presentations


Presentation on theme: "Copyright  Oracle Corporation, 1998. All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE."— Presentation transcript:

1 Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE

2 Copyright  Oracle Corporation, All rights reserved. 1-2 Objectives After completing this lesson, you should be able to do the following: Create new projects and applications in AppBuilder for Java Build and execute Java applications Modify Java application source code After completing this lesson, you should be able to do the following: Create new projects and applications in AppBuilder for Java Build and execute Java applications Modify Java application source code

3 Copyright  Oracle Corporation, All rights reserved. 1-3 Overview This lesson introduces the AppBuilder for Java Integrated Development Environment (IDE) Building, debugging, and deploying Java applications, applets, and JavaBeans Wizards to help build source code User interface designer Database connectivity components This lesson introduces the AppBuilder for Java Integrated Development Environment (IDE) Building, debugging, and deploying Java applications, applets, and JavaBeans Wizards to help build source code User interface designer Database connectivity components

4 Copyright  Oracle Corporation, All rights reserved. 1-4 The AppBuilder Environment

5 Copyright  Oracle Corporation, All rights reserved. 1-5 Creating a New Project Select File—>New Project from the Menu

6 Copyright  Oracle Corporation, All rights reserved. 1-6 Specifying Project Details: Step 1 Specify project details:

7 Copyright  Oracle Corporation, All rights reserved. 1-7 Specifying Project Details: Step 2 Specify optional project details:

8 Copyright  Oracle Corporation, All rights reserved. 1-8 Specifying Project Details: Final Step Choose one of the following options:

9 Copyright  Oracle Corporation, All rights reserved. 1-9 Creating a New Java Application Select File—>New from the Menu bar Double-click Application icon Select File—>New from the Menu bar Double-click Application icon

10 Copyright  Oracle Corporation, All rights reserved Specifying Application Details Specify details in Application Wizard: Then click OK Specify details in Application Wizard: Then click OK

11 Copyright  Oracle Corporation, All rights reserved Specifying Frame Details Specify details in Frame Wizard: Then click OK Specify details in Frame Wizard: Then click OK

12 Copyright  Oracle Corporation, All rights reserved The Skeleton Java Application Contains application and frame classes, plus HTML file

13 Copyright  Oracle Corporation, All rights reserved Building and Executing the Application Select Project—>Make Project to compile.java files into.class files Select Run—>Run to launch application Creates an application object Creates a frame object The frame object deals with the user interface Select Project—>Make Project to compile.java files into.class files Select Run—>Run to launch application Creates an application object Creates a frame object The frame object deals with the user interface

14 Copyright  Oracle Corporation, All rights reserved The top-level class in the application – Contains the main() method Select the application class View code in Content Pane The top-level class in the application – Contains the main() method Select the application class View code in Content Pane The Application Class

15 Copyright  Oracle Corporation, All rights reserved Finding Methods and Attributes Use the Structure Pane to find methods and attributes in a class Select item in Structure Pane Use the Structure Pane to find methods and attributes in a class Select item in Structure Pane

16 Copyright  Oracle Corporation, All rights reserved The Frame Class Defines the appearance and behavior of the user interface 1 2

17 Copyright  Oracle Corporation, All rights reserved Adding Palette Components to the Frame 1 2 3

18 Copyright  Oracle Corporation, All rights reserved Specifying Component Properties Select View—>Inspector to view or edit the properties of a component 1 2

19 Copyright  Oracle Corporation, All rights reserved Using the Help System Provides help on all development aspects Select Help—>Help Topics Provides help on all development aspects Select Help—>Help Topics 1 2

20 Copyright  Oracle Corporation, All rights reserved Finding Help Topics Master Index tab gives access to all topics 1

21 Copyright  Oracle Corporation, All rights reserved Debugging Programs with AppBuilder for Java AppBuilder for Java provides a sophisticated debugger The debugger provides the following capabilities: – Step over, or trace into, a method – Set conditional breakpoints – Examine and modify “watch” variables AppBuilder for Java provides a sophisticated debugger The debugger provides the following capabilities: – Step over, or trace into, a method – Set conditional breakpoints – Examine and modify “watch” variables

22 Copyright  Oracle Corporation, All rights reserved Using the Debugger Click the Debug icon to debug an app 1

23 Copyright  Oracle Corporation, All rights reserved Stepping Through a Program You can step through a program using the buttons on the Debugger toolbar Execute the program Step over a method call Trace into a method call Pause execution Stop the debugger You can step through a program using the buttons on the Debugger toolbar Execute the program Step over a method call Trace into a method call Pause execution Stop the debugger

24 Copyright  Oracle Corporation, All rights reserved Setting Breakpoints To set a breakpoint: Select a line of code in the Source pane Click with the right mouse button Select Toggle Breakpoint from the pop-up menu To run to the next breakpoint, select the Run button on the Debug toolbar To set a breakpoint: Select a line of code in the Source pane Click with the right mouse button Select Toggle Breakpoint from the pop-up menu To run to the next breakpoint, select the Run button on the Debug toolbar

25 Copyright  Oracle Corporation, All rights reserved Watching Variables You can examine and modify local variables in the Data pane To watch other variables: – Select a variable in the Source pane – Click with the right mouse button – Select Add Watch at Cursor from the pop-up menu View the variable in the “Watch” pane You can examine and modify local variables in the Data pane To watch other variables: – Select a variable in the Source pane – Click with the right mouse button – Select Add Watch at Cursor from the pop-up menu View the variable in the “Watch” pane

26 Copyright  Oracle Corporation, All rights reserved Summary AppBuilder for Java can be used to build, debug, and deploy Java applications, applets, and JavaBeans A new application in AppBuilder has three files: – Application class, contains main() – Frame class, defines UI – HTML file AppBuilder for Java can be used to build, debug, and deploy Java applications, applets, and JavaBeans A new application in AppBuilder has three files: – Application class, contains main() – Frame class, defines UI – HTML file

27 Copyright  Oracle Corporation, All rights reserved Practice 1-1 Overview Opening the final solution project, to gain familiarity with the goal of the practice sessions Creating a new project in AppBuilder for Java Adding a simple application Building and running the application Opening the final solution project, to gain familiarity with the goal of the practice sessions Creating a new project in AppBuilder for Java Adding a simple application Building and running the application

28 Copyright  Oracle Corporation, All rights reserved Full Notes Page for Practices

29 Copyright  Oracle Corporation, All rights reserved Full Notes Page for Practices

30 Copyright  Oracle Corporation, All rights reserved Full Notes Page for Practices


Download ppt "Copyright  Oracle Corporation, 1998. All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE."

Similar presentations


Ads by Google