How to reorder automatically generated methods in NetBeans?
•
Java
For example, when using the function of NetBeans to generate an event handler from the GUI, the body of the generated method is editable. I can't find a method to change the order of the generated methods in the class code
The generated code does not allow cutting and pasting
How could I do that?
thank you very much!
Solution
You can't do this in NetBeans This is not a priority because you can use the navigator
If you really want to move these blocks, open the java file using another editor (GEDIT, Notepad...) and reorder the blocks here
You can also delete / / gen-first and / / gen-last to make them editable in NetBeans
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码