- Select one or more components in the Form Workspace, or in the Components tree view.
- On the context menu of the selection, choose Surround with, or press Ctrl+Alt+TCommand Alt T.
- In the Surround With popup menu, click the desired container, or press the corresponding numeric key.

Tip
When reasonable, IntelliJ IDEA smartly suggests you to wrap a component into a container. This is done with the help of intention action. For example, IntelliJ IDEA suggests to wrap a JList into a JScrollPane:



