If you open .java files in Notepad or WordPad, you will find pairs of comments that say
// GEN-BEGIN: <name of section> ... // GEN-END: <name of section>
Remove these comments and two things will happen.
- You can edit anywhere in a file in NetBeans.
- NetBeans will not be able to recover the file from the GUI editor.
So it can be done, but not done, unless you really mean it .
EDIT: "Note: I do not want to lose code generation." Ok, look here.
- You want to change the created.
- You do not want to lose code generation.
- You do not want to use the tools that NetBeans provides to add custom code.
Sounds like you're sorry for the trouble.: D
source share