I would like to know if there is a way to modify the template that NetBeans uses to generate the code for JFrame while designing it, specificaly the order. As you know NetBeans generates code for JFrame form as follows:
- class declaration
- constructor calling initComponents();
- initComponents() method (folded & locked to editting)
- main method declaration
- variables declaration (for JFrame components like JPanel, etc., also locked)
and I would like to change the order of these parts of the code. It's just a matter of habbit. I like the variables declaration part to be at the beginning not at the end. I'm well aware that it won't change the functionality of my application probably in ANY way. However I am using NetBeans designing tools just to establish my GUI and rest of the code I write myself.
Thanks for help!