开发者

Netbeans building GUI; how do I disable Netbeans from disallowing me to edit text?

I find it annoying that Netbeans tries to disable editing the source code when开发者_运维技巧ever I use the GUI builder utility. I have searched in Google but could not find an answer:

How do I disable Netbeans from disallowing me to edit my source code? Is this a bug because whenever I right click the .java file, I am able to edit again.


I don't think that is a bug. In fact netbeans doesn't allow you to edit the source code in the initcomponents() method. In the properties window (Ctrl+ Shift+ 7) where you see the main tabs (properties, binding, events and code), after choosing a component and viewing its properties window, if you choose code you can add whatever code you want as in Custom-Creation code, Pre-Creation code, Post-Creation code, pre-Init code, Post-Init Code.....

Hope that helps.


Editing the Netbeans generated code is not a good idea - Netbeans will revert your changes again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜