IntelliJ IDEA 2023.2 Help

Grouping and Ungrouping Components

IntelliJ IDEA smartly detects components that are candidates for grouping together (for example, radio buttons). The first time you create a group, a button Groups node is added to the Component Treeview. A child node is added for each button group you add to the form.

Grouped buttons are visually indicated on the design form, when one of the buttons is selected in the Form Workspace or in the Components tree view, or when the whole button group is selected in the Button Groups node of the Components treeview:

Screenshot

To create a group of components

  1. In the Form Workspace, select the components to be joined into a group.

  2. From the context menu of the selection, choose Group buttons.

  3. In the Group Buttons dialog, specify the name of the new button group, and click OK.

To remove grouping

Do one of the following:

  • On the design form, select any component in a group, right-click, and choose Ungroup Buttons.

  • In the Component Treeview, right-click the relevant button group under Button Groups node, and choose Ungroup.

Last modified: 23 August 2023