开发者

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

开发者 https://www.devze.com 2023-01-10 22:31 出处:网络
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:

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

精彩评论

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