I just would like to ask about Java GUI especially Swing and how to get a handle of it.
I have been trying to use Swing and Awt on and off for quiet sometime now however I never got a good grasp of them, I want to know what's the best way to learn Swing with regard to the resources (books and materials) used and also the methods conducted (ex. do I have to remember all the syntax of those Swing API or just the concept).
Let me know what you think and also share your experience of learning Java GUI and how you did it.
The easy way would be downloading Netbeans IDE at http://www.netbeans.org/downloads/ and designing your GUI with the integrated GUI builder Matisse. Afterwards you can view the generated source code.
Pierre Sugar wrote:The easy way would be downloading Netbeans IDE at http://www.netbeans.org/downloads/ and designing your GUI with the integrated GUI builder Matisse.
Disagree. You will never understand what is going on from Matisse. Write the code by hand until you are familiar with Swing.
Pierre Sugar wrote:The easy way would be downloading Netbeans IDE at http://www.netbeans.org/downloads/ and designing your GUI with the integrated GUI builder Matisse. Afterwards you can view the generated source code.
I'll agree with the others as the generated code is ugly and nothing really you can learn from. I liken using NetBeans to generate Swing code like ordering Pizza to be delivered. Your meal is ready quick, and it tastes pretty good too, but don't expect that by ordering your pizza you'll learn to cook.
O.k. you convinced me, it wasn't a good idea to suggest using Matisse for to learn Swing. Yes I also do agree that it is not a good idea to try to learn to build Swing applications by looking at the generated code from Matisse.
Therefor I would rather suggest that you look at the Swing tutorials or use a book like "graphic Java" from David M. Geary or "core Java" from Horstmann and Cornell. This is the way I started with Swing and it helped me a lot. I still use it to look up certain things, even the books I have are from year 2000. Another book I frequently use is "Java look and feel design guide lines".
This message was edited 1 time. Last update was at by Pierre Sugar
I would like to thank you all for the replies and advices you guys posted for this question.
I agree with the most of you that Swing and GUI in general needs to be learned from scratch and through continuous practice, I am also against the idea of depending on NetBeans or any IDE that will generate the code for you because you will never understand the how and why behind it.
I appreciate your feedbacks.
MJ
This message was edited 1 time. Last update was at by Mo Jay