• 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

Core Java - advanced features - Swing?  RSS feed

 
Ranch Hand
Posts: 448
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?
 
Saloon Keeper
Posts: 10136
214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What great choices for Desktop GUIs are you thinking of?
 
Marshal
Posts: 64172
215
  • 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: 448
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)?
 
Sheriff
Posts: 5931
155
Chrome Eclipse IDE Java Postgres Database Ubuntu 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: 10136
214
  • 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.
 
author
Posts: 254
28
  • Likes 1
  • 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.
 
brevity is the soul of wit - shakepeare. Tiny ad:
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!