KDecker
KDecker

Reputation: 7128

Locate and remove "hidden" swing components place in Netbeans editor

I have managed to collect quite a few Swing components on my JFrame that I placed with the editor but "removed" though they still appear in the generated code.

enter image description here

Though I cannot for the life of me figure out how to remove them, from the designer I cannot select any of these components

enter image description here

Is there a way to remove these?

Upvotes: 3

Views: 3234

Answers (1)

WillShackleford
WillShackleford

Reputation: 7008

Select the components and delete them from the Navigator window when the "Design" is selected in the current editor window. The Navigator window should be the window that is usually in the bottom left corner under the project window. It shows a tree that you may have to expand some nodes in the tree to find the components of interest. You can select a whole list of components at a time and delete them from there.

Screenshot with bunch of JButtonGroups selected for deletion.

Upvotes: 5

Related Questions