IntelliJ IDEA 2021.1 Help

Add/Edit Palette Component

GUI Designer Palette | context menu | Add / Edit Component

Use this dialog to create a new component in the Palette, or change an existing one.

ItemDescription
ClassClick this radio-button to add a component from a class library. You can enter a fully qualified class name in the text field, or click the ellipsis button, and select the desired class from the libraries, or project. Note that code completion is available in the text field.
FormClick this radio-button to add an existing GUI form. You can enter a fully qualified form name in the text field, or click the ellipsis button, and select the desired form from the libraries, or project.
IconSpecify the fully-qualified name of the icon file, or click the ellipsis button, and select the desired icon file from the libraries, or project.
GroupSelect the target group where the new component will be added.
Horizontal / Vertical Size PolicyThe sizing policies define the behavior of the component, when its parent container is being resized.
Can shrinkIf this option is checked, the size of the component can reduce, when the container is resized.
Can growIf this option is checked, the size of the component can increase, when the container is resized.
Want growIf this option is checked, the size of the component can increase, when the container is resized. This option has a higher priority, when competing with the cells of the other components.
Is containerIf this option is checked, the component can accommodate nested components, and acquires some properties that pertain to the containers.
Create binding automaticallyIf this option is checked, the field for the component is automatically added to the bound class.
Can have attached labelIf this option is checked, the component of this type appears in the labelFor field of a JLabel component in the Inspector. It is important to note that Can have attached label option affects all components of this type on a GUI form. For example, if you check this option for JButton and JCheckBox Palette components, all instances of these components (already existing and newly added) appear in the labelFor field:
img labelFor.png
Last modified: 08 March 2021