IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Placing Non-Palette Components or Forms

Last modified: 10 August 2022

In addition to the GUI components from the Component Palette, you can use GUI components and forms not registered on the Palette, but available via your project's paths configuration.

A non-palette component can be associated with a GUI form, or with a class derived from JComponent. Such class should be available in your project, or in the libraries. The class should be compiled, and should have a default constructor, because GUI Designer instantiates objects by calling their default constructors.

If a class does not have a default constructor, but instead has a constructor with parameters, the Custom Create property of this component is set to true, and createUIComponents() method is added to the source code, where you have to provide the form initialization.