IntelliJ IDEA 2024.1 Help

Morphing Components

Suppose you have created a JTextField component that contains some text, colors, font properties etc., and find out that you need a JFormattedTextField component with the same properties. This is when morphing comes to help.

Morphing enables you to transform selected component into a new one, while preserving all common properties.

To create a new component on the base of an existing one, preserving the common properties

  1. Select the desired component in the Form Workspace or in the Components Treeview.

  2. On the context menu, choose Morph Component.

  3. In the Choose Component to Morph Into pop-up menu, click the target component type.

Last modified: 11 February 2024