如何在netbeans 6.5中删除buttonGroup
我是 Netbeans 新手,我使用过 Matisse GUI 编辑器,并且想要删除没有引用的
buttonGroup
。 我尝试了重构/安全删除操作,但没有办法这样做! 那太糟糕了。 有什么技巧或者我必须重新启动所有内容吗?顺便说一句,我发现无法编辑生成的灰色源代码真是太疯狂了,一定有什么技巧吗? Java 核心 GUI 开发人员如何处理这个问题?
感谢您的帮助!
SR
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?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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对于在 GUI 构建器中看不到的组件,请查看“检查器”窗口,右键单击该组件,然后单击删除。 默认情况下,该窗口应位于屏幕的左下角。
恕我直言,这是一种权衡:) 你得到了很棒的 GUI 构建器,并且不允许你任意更改生成的代码。 因为这会导致 GUI 构建器无法理解代码。 对于诸如在创建对象时为组件的构造函数指定参数之类的常见任务,您始终可以转到“属性”窗口中的“代码”组。 还有一些其他选项,例如“预创建代码”和“创建后代码”:)
图片:
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.
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:
我遇到了同样的问题,事实证明我试图从错误的窗格中删除它。
我在“导航器”窗格而不是“检查器”窗格中,如果您在 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!
不起作用 - 没有删除选项。 选择它并进入编辑 -> 删除什么也不做。
Doesn't work - there is no delete option. Having it selected and going to Edit -> Delete does nothing.
在“设计”模式下查看检查器窗口并从根展开所有组件。
删除直接反映在“源”模式中。
View the inspector window in 'design' mode and expand all components from the root.
Deletion reflects directly in 'source' mode.