– Preview Design enables you to preview the form layout.
– Align commands enable you to align selected objects.
– Change Resizability enables you to set up vertical and horizontal resizing.When the MyForm form opens in the GUI Builder's Design view, three additional windowsappear, enabling you to navigate, organize, and edit GUI forms. These windows include thefollowing:
. The primary window for creating and editing Java GUI forms. Source andDesign toggle buttons enable you to switch between view a class's source code and agraphical view of the GUI components. Click on an object to select it in the Design Area.For a multiple selection, hold down the Ctrl key while clicking on objects.
. Representation of a tree hierarchy of all the components in your application.The Inspector highlights the component in the tree that is currently being edited.
. A customizable list of available components containing groups for Swing, AWT,Borders, and Beans components. This window enables you to create, remove, andrearrange the categories displayed in the palette using the customizer.
. A display of the properties of the component currently selected in theGUI Builder, Inspector window, Projects window, or Files window.If you click the Source button, the IDE displays the application's Java source code in the editor.Sections of code that are automatically generated by the GUI Builder are indicated by blue areas.These blue areas are protected from editing in the Source view. You can only edit code appearingin the white areas of the editor when in Source view. When you make your changes in the DesignView, the IDE updates the file's sources.
Creating a Bean
To create your own bean object and add it to the palette for the bean group, execute the following procedure:1.Select the <default package> node in the MyBean project.2.Choose New|Java Class from the pop-up menu.3.Specify the name for the new class, for example, MyBean, then press the Finish button.4.Open the MyBean.java file.5.In the editor window, select inside the class. Right-click and choose Insert Code. Thenselect Add Property.6.In the Name field of the Add Property dialog box, type YourName and press OK.