Using a Custom Layout Manager

Any layout manager with a default constructor that does not use constraints for adding components can be used in the Form Editor at design time. You can also add custom layout managers that do not follow these criteria if you follow the specifications of the Layout Manager APIs used by the Form Editor. See the NetBeans web site (www.netbeans.org) for information about obtaining and using the Layout Manager API.

To install a custom layout manager:

  1. From the main window, choose Tools Add Directory or Tools Add JAR to add the layout manager's source or class to the IDE.

  2. Right-click the layout manager's class in the Explorer or Object Browser and choose Add to Component Palette from the contextual menu.

  3. In the Palette Category dialog box that appears, select the Layouts category and click OK.

See also
Form Editor

Component Palette

Legal Notices