Is there a way to get rid of the designer after creating a Swing GUI using the Netbeans GUI builder, without having to copy the source code into a new class?
Asked
Active
Viewed 899 times
0
-
2It's already there in `Source` view. – trashgod Apr 26 '13 at 20:38
-
Yes but some of the source code cannot be changed. I know it's possible to just copy the code to a new class but I wonder if there's another way. – Apr 26 '13 at 20:52
-
edited my question to clarify this. – Apr 26 '13 at 21:02
1 Answers
0
Open the .java
file of your class in another editor and remove comments like
//GEN-BEGIN:variables
//GEN-END:variables
These are not displayed by NetBeans editor. Then you can remove the .form
file with the same name of your class.

Jean Waghetti
- 4,711
- 1
- 18
- 28
-
Thanks! That's great, but it would have been nice if this was also possible from within the Netbeans environment. – Apr 26 '13 at 21:49