You can use the visual editor to quickly delete a component from
a Java class.
- In the Java Beans view or Design view of the editor, select
the component or components that you want to delete.
- Do one of the following steps:
- Right-click and select Delete from the pop-up
menu.
- Press the Delete key on the keyboard.
- Click the Delete button on the toolbar.
The components that you selected are deleted and removed from both
the Source and the Design views of the visual editor. You can click if you
want to undo your change.