tags:

views:

735

answers:

9

I am planning on making a Java Swing application and was wondering if Swing is still used or if it has been replaced with something else.

Thanks in advance!

+5  A: 

Yes it is still in use.

Joe Philllips
short and to the point.
Tom
+8  A: 
Betamoo
"Applet Portability: most Web browsers support AWT classes so AWT applets can run without the Java plugin."This is patently false.
Paul Fisher
ugh? I guess this is 1990s and you are still using Netscape 4.0, right?
J-16 SDiZ
Edited it..........
Betamoo
I wouldn't recommend AWT, it gets very little love these days (other than the bits that are needed for Swing). Better to use SWT if you want to go down the native path.
CurtainDog
"Most Web browsers do not include the Swing classes, so the Java plugin must be used." — What? The Swing classes are part of the JRE, not the browser. I don't recall this being a problem in 2003.
detly
For all these negatives, I have edited the question.....
Betamoo
“they *may* not look like their native counterparts” – that one made me giggle. At least on Windows I have yet to see a single control (apart from JLabel maybe) that looks and feels like its native counterpart with the “native” LAF :-)
Joey
+3  A: 

We still use it. Not everything is a web app, so far there have been some tentative replacements (such as SWT, which eclipse is written in)
SWT has a native layer that wraps the underlying calls to the native windowing layer. It only works for a limited set of platforms and of course requires some third party shared libraries. I would venture to say that there are far fewer SWT apps than Swing apps.

Romain Hippeau
+1  A: 

Yes, it still is in use. The library is still part of the JRE, and will probably be that way for the future. There are other options though. For instance, you may want to look at JavaFX if you need a rich UI; or using SWT in your application. Maybe you want some kind of 3D effects, and you need to look into a 3D engine like jpct or the jmonkeyengine. Java has progressed somewhat since the software Swing world.

JavaMan
+7  A: 

Swing is still there and well supported.

Most of the reasons why people hated swing when it first came out are no longer valid simply because of Moores Law, along with improved JVMs. Swing apps no loger feel jerky and unrepsonsive and an accumulation of minor improvements result in a more professional looking GUI.

Its also worth looking at the "groovy/swing" combination for rapid development and prototyping.

James Anderson
Docs for Swing, on the other hand, are dire to nonexistent.
JUST MY correct OPINION
Aggree that the docs are lacking somewhat, but, IDE support is pretty good, and, googling usually gets you some decent usage examples.
James Anderson
Real programmers don't read documentation.
Jay
There is a lot of tuning in Swing that cannot be attributed to Moores law.
Thorbjørn Ravn Andersen
@JMcO For documentation -> http://download-llnw.oracle.com/javase/tutorial/uiswing/
h3xStream
A: 

Swing is still the preferred way to build heavy-weight, e.g. "Desktop" applications, in Java. If your code is running in a web browser, you will likely use other things. But for freestanding desktop apps, it is quite excellent and in wide use.

Joe Zitzelberger
+1  A: 

Yes, it's still in use. Takes while to get used to but once you have it, it's a pretty nice framework for writing applications. Have a look at Webstart for deploying your application. Also a bit of a clunker to start with but really handy when you're comfortable

Jamie McIlroy
+1  A: 

Although swing is still in use, I would rather chose Eclipse RCP as a platform for desktop applications, since it also provides a huge amount of plugins.

stacker
Eclipse RCP uses Eclipse's own SWT, which means you need the native SWT libraries. You can also build on the NetBeans Platform, which is built on Swing: http://platform.netbeans.org/
Jesper
A: 

For desktop programs, yes, Swing is heavily in use. However there are many alternatives because alot of people think that Swing is heavily verbose and hard to work with. JavaFX is worth taking a look at

TheLQ
JavaFX is for web apps is it not? I am looking to make native Desktop apps.
Mark Szymanski