Duplicating Components
IntelliJ IDEA's GUI Designer provides several ways to create new instances of the same component on a form without returning to the Component Palette.
To add multiple instances of a component from the Palette to a form
Click the desired component in the Palette.
Keeping the Ctrl button pressed, click the target locations in the form.
Release the Ctrl button when ready.
To create a new instance of a component in a new location
Select one or more components in the Form Workspace or in the Components Treeview.
Keeping the Ctrl button depressed, drag the selected component to the new locations.
Click each target location to create a new instance of the component.
Release the Ctrl button when ready.
To clone a component
Select the desired component on a form.
Press Ctrl+D.
Last modified: 01 August 2022