IntelliJ IDEA 2016.2 Help

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

  1. Click the desired component in the Palette.
  2. Keeping the Ctrl button pressed, click the target locations in the form.
  3. Release the Ctrl button when ready.

To create a new instance of a component in a new location

  1. Select one or more components in the Form Workspace or in the Components Treeview.
  2. Keeping the Ctrl button depressed, drag the selected component to the new locations.
  3. Click each target location to create a new instance of the component.
  4. Release the Ctrl button when ready.

To clone a component

  1. Select the desired component on a form.
  2. Press Ctrl+D.

See Also

Reference:

Last modified: 23 November 2016