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
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Core Java - advanced features - Swing?  RSS feed

 
Will Myers
Ranch Hand
Posts: 447
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Just wondering if Swing is still used to any great degree? There seems to be so many other great choices for GUIs that I was under the impression that Swing was pretty much dead?
 
Stephan van Hulst
Saloon Keeper
Posts: 9856
199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What great choices for Desktop GUIs are you thinking of?
 
Campbell Ritchie
Marshal
Posts: 63454
207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing might be dead and might have been superseded by FX, but it won't lie down. It keeps running around quite actively. Lots of people still use Swing, and I find myself wondering what is going to come of Swing and FX.
 
Will Myers
Ranch Hand
Posts: 447
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What great choices for Desktop GUIs are you thinking of?



Maybe not desktop GUIs, but in 20 years of development I think when the question "what shall we use for the GUI?" has been asked, I don't recall anyone ever saying Swing! Wasn't JavaFX supposed to replace it (even though that seems to have sunk without trace)?
 
Knute Snortum
Sheriff
Posts: 5745
148
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaFX has been removed from the Java distro in Java 11 but it is very much alive.  Gluon uses it.  There's also OpenJFX.
 
Stephan van Hulst
Saloon Keeper
Posts: 9856
199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Will Myers wrote:Maybe not desktop GUIs, but in 20 years of development I think when the question "what shall we use for the GUI?" has been asked, I don't recall anyone ever saying Swing!


We're mostly a Microsoft development house, so most desktop GUIs I've built in the last years were WinForms or WPF, but Swing is most definitely the first thing I would look at if I was building a platform independent desktop tool.

Wasn't JavaFX supposed to replace it (even though that seems to have sunk without trace)?


It was supposed to, but it never happened. Not enough support from Oracle, and there are still plenty of developers who are more familiar with Swing.

Maybe the situation will change when OpenJFX receives a lot of attention from the community.
 
Cay Horstmann
author
Posts: 254
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wish that Swing or JavaFX were popular choices for writing desktop applications in 2019, but frankly they are not. There are niche markets where JavaFX is doing well--people keep telling me about some custom Java app for a foreign railway company that shows rail traffic on a wall of monitors. But look at your own desktop. What Java apps are you running other than IntelliJ/Eclipse/NetBeans? For that matter, how many desktop apps does one run these days? Even Office is migrating to the cloud. Looking at my desktop right now, there are a few terminal windows, Emacs, and a lot of browser windows.

So, no, I don't think there is a bright future ahead for any desktop UI toolkit.
 
A berm makes a great wind break. And Iwe all like to break wind once in a while. Like this tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!