Copy, Paste, Duplicate & Delete
Copy, paste, duplicate, and delete components from their menu or with keyboard shortcuts.
A component’s menu has what you’d expect of any editor: copy, paste, duplicate, and delete. Each changes the code.
Duplicate a button, delete it, and copy a field
-
Select a component and open its menu: click ⋮ in its badge, or right-click the component. Duplicate adds a copy right after it.
-
Delete removes the selected component, here the copy, from the view and from ContactView.java.
-
Copy puts the selected component on the clipboard, here the Phone field.
-
Select a component and choose Paste. The copy goes after it, here at the end of the form.