Step 3: Creating an Application for the UI

Previous topic
Previous
Next topic
Next

Now that you have created your user interface, you have to create an application, that is, a Java class with a main method. This is a standard requirement for a runnable Java application.

To create an application:

  1. In the Navigator, select the project node, right-click, and choose New from the context menu.
  2. In the New Gallery, in the Categories tree, expand the Client Tier node and select Swing/AWT.
  3. In the Items list, select Application and click OK.
  4. In the New Application dialog, for Optional Attributes, select both Add Default Frame and Existing Frame, and in the field for an existing frame type Frame1. Accept the other defaults and click OK.

    Notice that the new class, Application1.java, has appeared in the Navigator. It appears as the third selection now in the document bar, and the file itself is open in the Code Editor.

The next task is to debug your application. Go to Step 4: Using the Debugger to Debug Your Application now to explore JDeveloper's debugging features.