cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

FaqFormLayoutGenerationStyle

How can I set the GUI builder not to generate javax.swing.GroupLayout? I need Java 5 code.

The
javax.swing.GroupLayout
manager was introduced in Java 6. You can use the same features with Java 5 if you use the Swing Layout Extensions library (aka swing-layout). The GUI builder can be set to either use the library, or the Java 6 code. By default it is set based on the target platform of the project. If you need to change this for a specific GU form:
  • Open the GUI form.
  • Select the root node of an opened form in the Inspector (next to Navigator).
  • Show its Properties (Window | Properties, or from context menu).
  • Set the property called Layout Generation Style.

For more details about the use in NetBeans see the other questions, for example:


  Applies to: NetBeans 6.x
  Platforms: All