The visual editor supports cutting, copying, and pasting
in the Design view and Java™ Beans
view. You can copy single widgets or containers with their children.
About this task
When you are designing a visual class, often you want to
quickly cut or copy an element then paste several instances of the
same element in another spot in your application. When an item is
copied, not the properties of the item are included, but typically
the key visual properties are included in the paste. For example,
when you copy and paste a button, the text for the button is included.
When you cut or copy a Swing container or SWT composite, the child
controls are copied too.
The standard keyboard shortcuts are supported:
- Ctrl+X (cut)
- Ctrl+C (copy)
- Ctrl+V (paste)
To cut, copy, and paste components using the visual editor
for Java: