简体   繁体   中英

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 whenever 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.

编辑Netbeans生成的代码不是一个好主意 - Netbeans将再次还原您的更改。

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