Well, I see that I will confront the majority here; -)
Manual coding is a pain in the ass. Everything that makes the task easier is a good thing in my book. When you are just starting out, creating a generated GUI allows you to get up and work faster.
GUI constructors handle really repetitive work and prevent you from doing the most common dumb things. The downside is the same approach, which will also stop you from doing really smart things. In the end, you will come across something that you cannot do with the GUI constructor, and you will need to pop the code. Thus, you cannot treat code generators such as black boxes where you do not need to know what is going on inside. At a minimum, you need white boxes. Let the GUI developer do his magic, but understand this magic and its limitations.
Practice creating a very simple graphical interface. Go through the code and understand what it does. Make changes to the constructor and see how the generated code changes. Try changing the code yourself to confirm that you understood correctly. *
If you donβt understand something, click on JavaDocs, Swing Trail or browse the Java2S Swing Tutorials .
If you're still stuck, try the good people at Java Ranch , or here at /fooobar.com / ....
* Netbeans places the generated code in protected blocks and will not allow you to edit them directly. However, you can open the file in another editor to test the change. In addition, you can do a lot to influence code generation using the code tab in the properties window.
source share