Options Window: Miscellaneous: GUI Builder
See Also
You use this panel to configure code generation properties for the GUI Builder.
You can access this panel by choosing Tools > Options from the main menu, clicking the Miscellaneous category and then clicking the GUI Builder tab.
Code Generation settings
- Generate Components as. Select how the GUI Builder components are generated.
- Variables Modifier. Select from the drop-down list an access modifier for variables generated for components on the form.
- Listener Generation Style. Determines how the code for component events and their handlers is generated. All of the options produce functionally equivalent code, but each option has different performance qualities. Select one of the following options from the drop-down list:
- Anonymous Innerclasses. One anonymous innerclass is generated for each event. This option might have a negative impact on the performance and memory of the application because the application must load and keep open many classes when the form is executed.
- One Innerclass. One common innerclass is generated for the whole form. This innerclass implements all necessary listeners and dispatches all events to the attached event handlers. The resulting code is less compact and slightly less efficient, but the anonymous innerclasses are eliminated. This option is particularly suitable for large forms with many components and event handlers.
- Main Class. The form's main class implements the listeners. No special innerclass for events is generated. This is the most efficient option, but it does not work well with all types of forms. This option should only be used if the form class does not declare any listener implementation that could interact with events that are generated by components in the form.
- Automatic Internationalization. Select an option from the drop-down list to specify
if the GUI Builder should automatically generate the properties files where internationalized strings are stored.
- Fold Generated Code. If selected, generated code is folded in the Source Editor.
- Show Assistant. If selected, the GUI Builder Assistant is displayed in design view.
-
See Also
- Advanced GUI Builder Settings
- About Java GUIs
- Using the Options Window
Legal Notices