netbeansnetbeans6.5

Bypassing Lock on Generated Code in NetBeans 6.5?


In NetBeans the GUI Builder generates code that is off limits to you from the editor.

I know you can switch to Design Mode and specify custom code and then enter edit in indirectly that way, but it's a pain to not be able to edit text that's 2 lines from your cursor.

Can I allow editing within those regions... I promise I'll be careful :)

Thanks.

Note: I don't want to lose code generation


Solution

  • If you open it in an external editor, there are two possibilities:

    Either way, probably not what you want. The best thing to do would probably be to make the whole design up in the gui editor and when you are happy with it, delete the comments and continue on.

    [sarcasm] With the drag and drop gui editor, what could you possibly want to change by hand anyway? [/sarcasm] ;)