如何在netbeans 6.5中删除buttonGroup

发布于 2024-07-12 05:09:36 字数 275 浏览 14 评论 0原文

  1. 我是 Netbeans 新手,我使用过 Matisse GUI 编辑器,并且想要删除没有引用的 buttonGroup。 我尝试了重构/安全删除操作,但没有办法这样做! 那太糟糕了。 有什么技巧或者我必须重新启动所有内容吗?

  2. 顺便说一句,我发现无法编辑生成的灰色源代码真是太疯狂了,一定有什么技巧吗? Java 核心 GUI 开发人员如何处理这个问题?

感谢您的帮助!

SR

  1. I'm new to Netbeans I played around with Matisse GUI Editor and would like to delete a buttonGroup with no reference. I tried the refactor/safe delete action but no way to do so!
    That's so bad. Is there a trick or do I have to restart everything?

  2. By the way, I find it so crazy not to be able to edit the generated grey source code there must be a trick or something?
    How do Java hardcore GUI developers handle this then?

Thanks for your help!

SR

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

暖风昔人 2024-07-19 05:09:36
  1. 对于在 GUI 构建器中看不到的组件,请查看“检查器”窗口,右键单击该组件,然后单击删除。 默认情况下,该窗口应位于屏幕的左下角。

  2. 恕我直言,这是一种权衡:) 你得到了很棒的 GUI 构建器,并且不允许你任意更改生成的代码。 因为这会导致 GUI 构建器无法理解代码。 对于诸如在创建对象时为组件的构造函数指定参数之类的常见任务,您始终可以转到“属性”窗口中的“代码”组。 还有一些其他选项,例如“预创建代码”和“创建后代码”:)

图片:
http://lh5.ggpht.com/_5XDoB4MglkY/SYSIp5flFaI/AAAAAAAAE-E/ZIR4ZBLPUz4/s800/NB2.jpg

  1. For the components that you are not able to see in GUI builder, take a look at "Inspector" window, right click on the component and click on delete. The window should be to the left-bottom of your screen by default.

  2. It's a trade off IMHO :) You get the great GUI builder and you are not allowed to arbitrarily change the generated code. Since it will cause the GUI builder not to understand the code. For the common task like specifying parameter to constructor of component at object creation, you can always go to 'Code' group at 'Properties' window. There are some other options such as 'Pre-creation Code' and 'Post-creation Code' too :)

Image:
http://lh5.ggpht.com/_5XDoB4MglkY/SYSIp5flFaI/AAAAAAAAE-E/ZIR4ZBLPUz4/s800/NB2.jpg

提笔书几行 2024-07-19 05:09:36

我遇到了同样的问题,事实证明我试图从错误的窗格中删除它。

我在“导航器”窗格而不是“检查器”窗格中,如果您在 Netbeans 中突出显示按钮组或任何其他不可见组件并单击“删除”,那么它将毫无问题地删除它,或在“源”视图中留下不必要的代码。

希望这可以帮助任何可能再次遇到此问题的人!

I had the same problem, it turns out i was trying to delete it from the wrong window pane.

I was in the 'Navigator' pane rather than the 'Inspector' pane, if you highlight the button group or any other invisible component here in Netbeans and hit DELETE then it will delete it without problems or leaving unecessary code in the Source view.

Hope this helps anyone who might come across this problem again!

┈┾☆殇 2024-07-19 05:09:36

不起作用 - 没有删除选项。 选择它并进入编辑 -> 删除什么也不做。

Doesn't work - there is no delete option. Having it selected and going to Edit -> Delete does nothing.

梦开始←不甜 2024-07-19 05:09:36

在“设计”模式下查看检查器窗口并从根展开所有组件。
删除直接反映在“源”模式中。

View the inspector window in 'design' mode and expand all components from the root.
Deletion reflects directly in 'source' mode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文