简体   繁体   中英

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.

在此处输入图片说明

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

在此处输入图片说明

Is there a way to remove these?

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.

屏幕截图,其中有一组JButtonGroups被选择删除。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM