|
|
Contents |
Eclipse plug-inThis plug-in integrates JFormDesigner into Eclipse and other Eclipse based IDEs (e.g. JBuilder 2007). BenefitsUsing this plug-in has following benefits compared to JFormDesigner stand-alone edition:
User interfaceThe screenshot below shows the Eclipse main window editing a JFormDesigner form. JFormDesigner adds the menu Form to the main menu.
A JFormDesigner editor consists of:
Creating new formsYou can create new forms in Eclipse's Package Explorer view. First select the destination package or folder, then invoke Eclipse's New command and choose JFormDesigner Form. If it is not in the sub menu, select Other, which opens Eclipse's New dialog and choose JFormDesigner Form form the list of wizards.
In the New JFormDesigner Form dialog, enter the form name (which is also used as class name), choose a superclass, a layout manager and set localization options.
After clicking OK, the form will be created and opened. Open forms for editingYou can open existing forms the same way as opening any other file in Eclipse. Locate it in Eclipse's Package Explorer view and double-click it. Go to Java codeJFormDesigner adds a button to its toolbar that enables you to switch quickly from a JFormDesigner form editor to its Java editor.
Code foldingTo move the generated code out of the way, JFormDesigner folds it in the Java editor.
Convert NetBeans and IntelliJ IDEA formsYou can convert existing NetBeans and IntelliJ IDEA forms to JFormDesigner forms. Right-click on the form file and select Convert to JFormDesigner Form. Note: When converting an IntelliJ IDEA form, JFormDesigner inserts its own generated GUI code into the existing Java class, but does not remove IDEA's GUI code. You have to remove IDEA's component variables and initialization code yourself. PreferencesThe JFormDesigner preferences are fully integrated into the Eclipse preferences dialog. Select Window > Preferences from the menu to open it and then expand the node "JFormDesigner" in the tree. See Preferences for details. |