tags:

views:

40

answers:

2

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.

A: 

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

mort
Thank you very much!
Carlo del Mundo
Please upvote if my answer was any help
mort
+1  A: 

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.

Saher
Thank you very much!
Carlo del Mundo
@Carlo del Mundo: You're welcome. Please accept the answer and/or vote it up. thanks.
Saher