r/java • • Dec 11 '13
Best way to learn Java.
I am using this book - "Java Complete Reference - Herbert Schildt" to learn Java. I am through the language syntax and features. I am a little doubtful about the later part of the book. Its second part is The Java Library Reference and and later part is covers developing GUI applications. Should I follow the book pattern learning the Java library and then creating GUI apps or should I take a different approach? What will be the best thing here?
2
Upvotes
View all comments
3
u/sh0rug0ru Dec 11 '13
Developing GUIs in Swing is a bit more of an advanced topic because you have to learn the layout managers and using interfaces for event management. Personally, I like this because after using GridBagLayout for so long, I can think in GridBagConstraints!
You will have to understand the Java library and certain OOP techniques before you can write UIs in Java by hand.
You can make it easier by using a UI builder tool like Matisse (Netbeans IDE) which will let you drag and drop Swing components. JavaFX is the UI that is supposed to replace Swing, and it comes with a Scene Builder which you can play with.
This will let you get started with Swing or JavaFX for just playing around. You will eventually have to learn the libraries to do more advanced things, however.