How to change the order of created methods in Netbeans?

When using Netbeans functions to generate event handlers from the graphical interface, for example, if the body of the generated methods is editable, I cannot find a way to change the order of the generated methods in the class code.

Cutting for cutting and gluing is prohibited by the generated code.

How can i do this?

Many thanks!

+7
source share
1 answer

You cannot do this in Netbeans. This is not a priority because you can use Navigator.

If you really want to move these blocks, open the Java file with another editor (Gedit, Notepad ...) and reorder the blocks here.

You can also remove //GEN-FIRST and //GEN-LAST to make them editable in Netbeans.

+6
source

All Articles