IntelliJ IDEA 2021.3 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.

Item

Description

Class

Click 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.

Form

Click 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.

Icon

Specify the fully-qualified name of the icon file, or click the ellipsis button, and select the desired icon file from the libraries, or project.

Group

Select the target group where the new component will be added.

Horizontal / Vertical Size Policy

The sizing policies define the behavior of the component, when its parent container is being resized.

Can shrink

If this option is checked, the size of the component can reduce, when the container is resized.

Can grow

If this option is checked, the size of the component can increase, when the container is resized.

Want grow

If 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 container

If this option is checked, the component can accommodate nested components, and acquires some properties that pertain to the containers.

Create binding automatically

If this option is checked, the field for the component is automatically added to the bound class.

Can have attached label

If 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: 01 August 2022