Form Workspace
The Form Workspace occupies the center part of the frame (assuming the default tool window layout and visibility). The background is white by default. When you create a new Form, a JPanel component is added to the workspace which appears as a gray rectangle. You can place components from the Component Palette into this container by first clicking on the component in the Palette, and then clicking within the pane in the Form Workspace. The form workspace has a context menu that provides access to the Clipboard, layout actions and more.
Item | Description |
---|---|
Preview | Show the form as it should look at runtime. See Previewing Forms. |
Data Binding Wizard | Generate getData() , isModified() and isModified() methods for the fields bound to data. The corresponding class should already exist. See Generating Accessor Methods for Fields Bound to Data |
Cut, Copy, Paste | Perform usual Clipboard operations. |
Pack | Choose this command to compress the current form to its minimal size, defined by the layout manager. This command is only available for the top level container in a form. |
Show Grid | If this option is checked, the form displays grid lines. |
Show Component Tags | This option toggles display of the name of a field associated with the selected component. This feature is available for the components that exceed certain pre-defined dimensions. |
Create Component | Choose this command to display the list of available components and insert the selected one in the current location. |
Jump to Source | Open the bound class in the editor, and place the caret to the field associated with the selected component. For the whole form, the caret rests at the class declaration. |
Expand/Shrink Selection | Select successively increasing sets of components from the current one to its container. |
Duplicate | Clone the selected component. |
Morph Component | Create a component of a different type with the same properties. See Morphing Components. |
Create Listener | Create listener for the selected component. |
Go To Listener | Navigate to the source code of the selected listener. |
Surround With | Display the list of available containers, and place in one or more selected components into the container of your choice. See section Wrapping/Unwrapping Components |
Flatten | Unwrap components from a container. See section Wrapping/Unwrapping Components. |
Local history | Access the commands of the local version control. |
Add to Favorites | Add selected component to favorites. |
Last modified: 08 March 2021