Java: Books or Online Tutorials?

B

Brandon

I have been programming in C/C++ for about 6 years. I already know
Java (the language itself) and the basics of AWT (but not very much)
and I'm interested in learning about Java interfaces. I'm especially
interested in Swing. So, given what I already know, would it be
better to buy a Java book or just look for tutorials online? If
tutorials, which tutorials are generally regarded as the best? If
books, which book would be best? I've been having a hard time finding
good books that aren't for either beginners learning about loops and
exceptions and whatnot, or experts trying to squeeze all they can out
of Java.

-Brandon
 
R

Roedy Green

So, given what I already know, would it be
better to buy a Java book or just look for tutorials online?

There are a few gotchas to Swing, like contentPane, focus traversal
and use of paintComponent but the rest is just stamp collecting.

You can get the basics of most Swing components just by looking them
up in the Java glossary. e.g. http://mindprod.com/jgloss/jbutton.html

From there it points you to the Sun docs for the less commonly used
methods.

See the table at http://mindprod.com/jgloss/awt.html
for the equivalent Swing methods to your familiar AWT ones.

Perhaps you might want to read a tutorial or essay or text for JTable
and JTree. The other components are pretty straightforward. The
JavaDoc should suffice.
 
G

Gary Labowitz

Roedy Green said:
There are a few gotchas to Swing, like contentPane, focus traversal
and use of paintComponent but the rest is just stamp collecting.

You can get the basics of most Swing components just by looking them
up in the Java glossary. e.g. http://mindprod.com/jgloss/jbutton.html

From there it points you to the Sun docs for the less commonly used
methods.

See the table at http://mindprod.com/jgloss/awt.html
for the equivalent Swing methods to your familiar AWT ones.

Perhaps you might want to read a tutorial or essay or text for JTable
and JTree. The other components are pretty straightforward. The
JavaDoc should suffice.

I second that. For the most part you can puzzle out how things work using
Java Docs. However, if you have been programming for a while and want some
direct help with how things work, I find Core Java (Horstmann and Cornell, I
think) to be a good point for reference.
 
D

David Segall

I have been programming in C/C++ for about 6 years. I already know
Java (the language itself) and the basics of AWT (but not very much)
and I'm interested in learning about Java interfaces. I'm especially
interested in Swing. So, given what I already know, would it be
better to buy a Java book or just look for tutorials online? If
tutorials, which tutorials are generally regarded as the best? If
books, which book would be best? I've been having a hard time finding
good books that aren't for either beginners learning about loops and
exceptions and whatnot, or experts trying to squeeze all they can out
of Java.

-Brandon
You choose. Swing Second Edition
(http://www.manning.com/catalog/view.php?book=robinson2) is widely
regarded as a definitive reference and tutorial on Swing and is
available in hard copy or an EBook. I prefer having the hard copy but
the first edition was released as a free download and is still
available from several sites including
http://www.newsoftland.co.nz/newsoftland/free_downloads/javaswingdevelopment.html.
 
P

Petr Aubrecht

You choose. Swing Second Edition
(http://www.manning.com/catalog/view.php?book=robinson2) is widely
regarded as a definitive reference and tutorial on Swing and is
available in hard copy or an EBook. I prefer having the hard copy but
the first edition was released as a free download and is still available
from several sites including
http://www.newsoftland.co.nz/newsoftland/free_downloads/
javaswingdevelopment.html.

Unfortunately, the last address doesn't contain any files (try to download
any).

Anyway, the book is great and it's better to have hardcopy.

Petr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top