Click to See Complete Forum and Search --> : Java-SWING
BlueGuy
12-26-2002, 03:39 PM
Hello
Recently I have taken up the task of learning how to implement GUI's in Java. Although so far, my attempts have been failures. It was not as easy as I had first expected. Perhaps it's because it's all new to me, but it seems quite complicated.
Does anyone here know of any good tutorials on the web which deals with the implementation of GUI's in Java applications? Help would be much appreciated, thanks!
Mastering the various layout managers available takes quite a bit of practice. Often, it's easier to learn using an IDE like NetBeans to lay out the objects for you along with all the callback methods, then dig through the code manually.
I would also recommend the book core JAVA2 Volume 1-Fundamentals. Sorry, but haven't used any online tutorials.
Nephalim
12-27-2002, 11:55 PM
Here is one of the most comprehensive SWING tutorials i've found on the web. (link) (http://java.sun.com/docs/books/tutorial/uiswing/) I used this tutorial in conjunction with Wrox's Java 2 1.4 book and was fairly successful; however, it wasn't the smoothest learning curve. Good luck. :D
pcbuyer
12-31-2002, 12:05 AM
Well, this is going to sound like an oversimplification, and I suppose it is ...
However, to get the swing of swing you realy only need to wrap your mind around two concepts. Everything is essentialy layered (in an OO way) and everything is event based (again in an OO way .. with object call-backs).
Of course I realize that this probably won't help you much .. HOWEVER .. as you are reading tutorials/books etc. try to focus on how things you are reading tie into the two concepts I pointed out. When you start making the connections you will, I am certain, have an AHA!!! momment, everything will click and you will find that you can do 90% of things in SWING without learning anything more (well still have an API reference handy) :)
bryce777
12-31-2002, 03:37 PM
pcbuyer is right.
Swing is amazingly flexible though it still has many faults, but people who try to use all the components as-is or without using the models will be extremely frustrated and unhappy....