• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Java Swing for desktop - Dying and Decaying ?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not come across any famous and popular software which uses swing for its front end or GUI. Is it even used by any useful and significant software? I am not talking about small or obscure projects. I am talking about software like Microsoft Office, Android OS, Google Chrome etc. Additionally, its not even a requirement for almost 99% of the java jobs. Looks like its a dead and decaying technology.

Is there any replacement or alternative to swing for Java ?

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to Oracle, JavaFX is replacing Swing as the desktop UI of choice. Swing was never widely used for big name desktop applications, but there have been some exceptions -
I believe LimeWire was one. Eclipse is written in Java but I believe uses the SWT toolkit. I have heard that Swing is used extensively in "Enterprise" applications.

One word of caution - I don't believe JavaFX has a native look and feel yet, so your app will look like it came from outer space on all platforms if you go that route.
It does look like it has more of a future though, there are ports for Android/iOS coming.
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think JavaFX has any more of a future than Swing, which is neither framework's fault. It's just that desktop Java in general hasn't exactly taken the world by storm, and has recently gotten even more of a bad rep due to all the security problems. So, Swing and JavaFX work fine, but don't bank on them getting you any paid work.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Ulf. It can't really be "dying and decaying" if it never really lived at all.
 
Pamela Hendersen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So why does Java even have swing in the first place ? Only so that java developers can have something besides the console to control their programs ? Looks like Java itself was meant to be an ONLY back-end language.
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pamela Hendersen wrote:So why does Java even have swing in the first place ? Only so that java developers can have something besides the console to control their programs ? Looks like Java itself was meant to be an ONLY back-end language.


Three to eight years ago, the financial industry was writing Swing UIs for the traders. I don't know if they still do.
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one (at least that I know) has a crystal ball. I'm sure that the originators had high hopes for it.

Besides, it's hard to cut off a limb, even if it's dying and gangrenous.
 
Pamela Hendersen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:

Pamela Hendersen wrote:So why does Java even have swing in the first place ? Only so that java developers can have something besides the console to control their programs ? Looks like Java itself was meant to be an ONLY back-end language.


Three to eight years ago, the financial industry was writing Swing UIs for the traders. I don't know if they still do.



Probably replaced by a web based front end.

I did a search on Indeed, Simply Hired and Dice. Surprisingly, a lot of jobs require Swing. However, after a quick glance at some of them, I noticed that they require many other skills also. I suspect that Swing is only a small part of these jobs.
Unless legacy swing code is the issue, why do people want to use Swing and hire people for Swing ? Are these employers merely including Swing only because they use a job requirement creation template from 5 years ago ?

Why people, why do you want to use swing ?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pamela Hendersen wrote:So why does Java even have swing in the first place ? ... Looks like Java itself was meant to be an ONLY back-end language.


Java started its life on the client-side; the server-side came later.

However, after a quick glance at some of them, I noticed that they require many other skills also. I suspect that Swing is only a small part of these jobs.
Unless legacy swing code is the issue, why do people want to use Swing and hire people for Swing ?


The main use for Java GUIs at this point is probably specialized in-house GUIs, for which it's hard to gauge how wide-spread thy are (somewhat similar to the niche Motif used to inhabit). Those would generally use some network technology to access server-side resources, so Swing would be used alongside JAX-RS, JAX-WS, sockets, RMI, EJB etc. If for some reason companies want to build a desktop app instead of a web app for some of their systems, there's value in using the same programming language.
 
Pamela Hendersen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:
The main use for Java GUIs at this point is probably specialized in-house GUIs, for which it's hard to gauge how wide-spread thy are (somewhat similar to the niche Motif used to inhabit). Those would generally use some network technology to access server-side resources, so Swing would be used alongside JAX-RS, JAX-WS, sockets, RMI, EJB etc. If for some reason companies want to build a desktop app instead of a web app for some of their systems, there's value in using the same programming language.



Agree. If most of your tools are based on java, then why hire another person just for non-java UI ? Use the existing employees to do it.
Looks like swing is just piggybacking on the need for other "tools" like JAX-RS, JAX-WS, sockets, RMI, EJB etc.

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like Jeanne mentioned, trading/financial applications are still being developed using Swing. Netbeans itself is written in Swing.
I think the main reason for Swing popularity going down is a major shift to web based UIs.
 
Ranch Hand
Posts: 73
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey now... some of us old timers here really like tinkering around with swing. :-)
 
Ranch Hand
Posts: 88
Netbeans IDE Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NetBeans is a platform as well as an IDE and some people are using it for their in-house applications too. You can see a list of applications here:

http://netbeans.org/features/platform/index.html
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic