IntelliJ IDEA 2024.1 Help

Component Tree

The Component Tree is a section of a form that displays the components contained in the design form and enables you to navigate to and select one or more components. Selection of one or more components here is reflected in parallel on the design form and vice versa.

The component tree section of a form

The Component Tree hierarchy represents containment. Expandable nodes represent some type of container. Sub-nodes of containers represent UI components (including nested containers). The root node represents the Form, which is, in effect, the top-level container for the GUI you are building with the UI Designer.

When you create a new Form, a JPanel component is automatically added to the form workspace, and it appears as a child of the Form in the Component Tree. This JPanel is the top of the UI component hierarchy (in the Java sense) for the current Form. All other Swing or other UI components are contained within it. It is also possible to move components from one container to another using a drag-and-drop operation in the Component Tree.

Last modified: 21 June 2024