Creating a Frame

A frame is a top-level window with a border and a title. It has standard window controls such as a control menu, buttons to minimize and maximize the window, and controls for resizing the window.

The New Frame dialog adds a new class to the active project. It adds necessary import statements, creates a default constructor, and it creates a jbInit() method in which JDeveloper sets properties and other initialization code used by the Java Visual Editor.

To add a frame:

  1. Open or create a project.
  2. Choose File then choose New to locate the New Frame dialog in the New Gallery.

  3. In the Categories list, expand Client Tier and select Swing/AWT.

  4. In the Items list, select Frame and click OK to launch the New Frame dialog.

  5. In the New Frame dialog, enter the name of the package and class.
  6. Choose which frame type to extend.
  7. Type the frame title.
  8. If there are any options (such as Menu Bar) select any you feel are appropriate.
  9. Click OK to create the frame and its source code.
    The frame is displayed as a .java source file in the Navigator.

To view the a frame in JDeveloper:


About Containers