You can use the visual editor to quickly delete a component from
a Java class.
The components that you selected are deleted and removed from both
the Source and the Design views of the visual editor. To undo your change,
you can click , or the Undo

button on the main toolbar.