The first step in composing the LookandFeel application is to create its primary window. This top-level container serves as the root of the containment hierarchy to which components are added.
As you interactively compose the application, the IDE generates the Java source code that when compiled and executed (later in this tutorial), implements your design. You can save these source files in the Development filesystem in the lookandfeel directory. To see the directory hierarchy, open an Explorer window and select the Filesystems tab. To locate the lookandfeel directory, expand the Development node, then expand the tutorial node.
To create the container:
The Template Chooser is displayed.
A description of the JFrame component appears in the pane on the right.
The Directory field now shows the full path name for files generated by the IDE (.java, .form, .class).
Notice that the Explorer window now includes a LookandFeel node.
Next, the IDE switches to the GUI Editing workspace and opens the set of windows associated with this workspace. These windows are related to the particular task of designing graphical user interfaces and the set includes the Form Editor, the Component Inspector, and the Source Editor. In general, use the Component Inspector to select or edit a particular component and the Form Editor to see the runtime appearance (roughly) of the form. Since you do not write code in this tutorial, you can minimize the Source Editor window.
BorderLayout is the default layout manager for the JFrame container. You see the five layout areas (north, east, south, west, and center) in the Form Editor.
Next:![]() Back: ![]() |