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.
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)?
JavaFX has been removed from the Java distro in Java 11 but it is very much alive. Gluon uses it. There's also OpenJFX.
All things are lawful, but not all things are profitable.
Stephan van Hulst
posted 2 months ago
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.
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.