Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Should I learn Java Swing?  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cay! Congratulations for your book!

I saw that there is a large chapter about swing. How do you see the swing development today? In what scenarios do you understand that the swing is the best choice?

Thanks a lot!
 
author
Posts: 254
28
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the book, I think a little bit of Swing is ok to learn. It's not a big investment, provides examples of callbacks, some appealing programs, and a few utilities where the visual aspect makes sense.

I wouldn't bother more than the basics, though. I took out most of the Swing coverage from the 11th edition because very few people write user interfaces on the desktop in any language any more. UIs tend to be in JavaScript in a browser, or in a mobile OS. The few who still need this knowledge can peruse older editions on Safari.

The only Swing things that I left in was some 2D graphics and table/tree stuff that I have seen people use to generate images on the server or in command line tools.

I think that the 12th edition will have even less Swing, and it may eventually all go.

Cheers,

Cay

 
Marshal
Posts: 64172
215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you planning to introduce FX iinstead?
 
Ranch Hand
Posts: 72
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Cay Horstmann wrote:
I think that the 12th edition will have even less Swing, and it may eventually all go.


Will the next editions of the book be released every 3 versions of Java as this edition covers Java 9, 10, 11 ? Or will be released only every LTS version of Java ? So the 12th edition will be released when Java 17th is released. ?
 
Cay Horstmann
author
Posts: 254
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At this point, I imagine that the book is updated for every LTS release. If something incredible were to happen for one of the other releases, there might be another Java n for the Really Impatient.

 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!