• Post Reply Bookmark Topic Watch Topic
  • New Topic

Best book for swing beginner

 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell some good books which covers important basics of swing ?
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can start with the Swing Tutorial.
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks.
 
Campbell Ritchie
Marshal
Posts: 52547
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest that you find a JavaFX book because JavaFX will probably largely replace Swing in a couple of years.
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh JavaFX looks exciting, and I bought Head First Java, Herbert Schildt is boring.
 
Campbell Ritchie
Marshal
Posts: 52547
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Head First was written before JavaFX was developed.
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need head first for awt and swing, herbert schildt's programs on awt and swing are all wrong.

Also I tried reading Swing tutorial of Oracle, that was a bit high level for me, I didn't understand properly.
 
Campbell Ritchie
Marshal
Posts: 52547
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you know Schildt is wrong? Why do you want AWT classes in the first place?
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to understand Component, Container , Panel, Frame , I directly started Swing but now I realized it is better start from Simple GUI class like AWT which will help me understand GUI more.

This compiles perfectly but no output.

 
Campbell Ritchie
Marshal
Posts: 52547
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RahulRise Das wrote: . . .
it is better start from Simple GUI class like AWT which will help me understand GUI more.
. . .
Nonsense. AWT has been obsolete for ten years. Applets are probably obsolete too. There is nothing you can learn about either which you can't learn in Swing. Swing will be obsolete in a few years so you might as well go straight to JavaFX. JavaFX will probably still be current and maintained regularly in ten years (but one cannot be certain about that).
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Boss then I will find a good book for JavaFX.
 
Brett Spell
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not to confuse the issue, but I think your initial plan of learning Swing is your best bet.

It's true that for years now Oracle has been neglecting Swing and promoting JavaFX, but it's also true that in spite of those efforts JavaFX hasn't gained much traction in the industry. I've worked with a number of different companies of various sizes over the years, and these days -- like most "Java" developers -- much of my time is spent doing web development with non-Java (mostly JavaScript) technologies. Still, I've been repeatedly surprised at how many companies not only have "legacy" Swing applications they don't plan to get rid of, but in many cases are even creating new Swing-based applications. JavaFX, on the other hand, I've only encountered in discussions. I guess there ARE people creating applications using it, but I haven't encountered any of them in person yet.

Don't take my word for it, though: I'm just some guy on the internet you don't know and my experiences are anecdotal. But go to any web site with job listings and do a search for something like "Java Swing" and compare the results you get with searching for, say, "JavaFX". Or for that matter, compare the amount of activity in the Swing forum on this web site with the amount of activity in the JavaFX forum -- or do the same thing on Stack Overflow. The results are consistent wherever you look: there's significantly more Swing-related activity and interest than there is for JavaFX -- in some cases a LOT more. To be sure, the amount of web development activity dwarfs them both, but if you're determined to learn desktop development with Java then Swing is the right way to go.

Regarding your original question, I'm afraid I can't make any recommendations because I'm not familiar with any introductory Swing books, so the only advice I could give would be to pick one based on online reviews. The good news is that, because Swing has been neglected for a number of years, it's likely that even a Swing title with an older publication date will still be up-to-date.

P.S. While it's true that JavaFX is newer than Swing, it hardly qualifies to be considered a new kid on the block that just needs a little more time to mature and gain acceptance. It's been around for 7 years, which is a long time in this industry, and if it hasn't caught on by now you have to wonder what's going to happen that could change that.
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I'll learn Swing And JavaFX.

I'll start from oracle tutorials, I'll do my best.
 
Campbell Ritchie
Marshal
Posts: 52547
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many decent general Java books have a good section about Swing.
 
Brett Spell
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RahulRise Das wrote:I'll start from oracle tutorials, I'll do my best.


It looks like there are also a number of Swing tutorials on YouTube if that's more appealing to you. There again, I don't have any personal experience learning from them, but most of them are fairly recent (created in the past few years) and some have many (100K) views and a large number of "likes".
 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I'll check it out, thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!