The IDE's GUI Builder allows you to design GUI's (graphical user
interfaces) visually. As you create and modify your GUI, the IDE automatically
generates the Java code to implement the interface. GUI forms are indicated
by form nodes (
)
in the Projects, Files, and Favorites windows.
Whenever you open a GUI form, the IDE displays it in a Editor tab with toggle buttons allowing you to switch between Source and Design views. The Design view allows you to work with GUI forms visually while the Source view permits editing of the form's source code directly. Each time you select a form's Design toggle button, the Palette, Inspector, and Properties windows appear automatically.
Typically, components are added to a form using the Palette window and arranged in the GUI Builder workspace. As you work, the GUI Builder automatically displays guidelines suggesting preferred alignment and anchoring for the components you add. Using the Inspector window in conjunction with the Properties window, you can then examine and adjust properties of a form's components and layout managers, manage component event handlers, and define how code is generated.
As you work with a form in the Design view, code is generated automatically by the GUI Builder and is displayed in the Source view with a blue background. This code is called guarded text and is not directly editable.
Guarded text generated by the GUI Builder's includes:
The IDE's Inspector window provides a hierarchical tree view of the form's various components.
Each form is represented by a root node (
)
within which all components in the form's class
are contained. All other GUI components are organized into one of the following
two subnodes:
).
Represents the top level of the form's hierarchy and contains the visible
components currently displayed in the GUI Builder.
).
Contains the form's non-visual components. Notes: