views:

226

answers:

4

HI all

I downloaded Net Beans IDE and created a new desktop aplication. I choose it to be Swing app. The IDE displayed that the Swing framework is out of date and will not be supported in the future.

does this mean that Swing is out of date ? and if so what are the most recent frameworks that can be used to develop desktop applications ?

thanks

+1  A: 

AFAIK Swing is definitelly not out of date and will be even enhanced in JDK7

Maybe you should show us screenshot, it might be misunderstanding

Xorty
+1  A: 

I think something wrong with your netbeans. Can you show some screenshot?

The future of swing

vodkhang
lightweight ?! it's one of the heaviest (if not the heaviest) desktop frameworks!
Xorty
Sorry, the correct would be it is more lightweight than awt. And I only know swing and awt for Java desktop application as on some sites saying about that : http://mindprod.com/jgloss/swing.html
vodkhang
awt is long dead. There is also SWT
Xorty
oh, I didn't know. When I learnt from my uni, people still say about it. Thanks for your info
vodkhang
@xorty - Swing is considered lightweight because everything is painted on a canvas, there's very little by the way of OS machinery involved. And regarding AWT, it is only half dead. Swing still requires AWT, but I don't think many people would be targeting AWT for their development.
CurtainDog
I cancelled downvote since you altered answer
Xorty
@CurtainDog : well, it's bigger performance killer than almost any gui framework. That can't be considered lightweight
Xorty
@Xorty: thanks:)
vodkhang
@Xorty: I know what you mean, but in this context lightweight has a different meaning (see, for example, http://en.wikipedia.org/wiki/Swing_%28java%29#Configurable)
CurtainDog
@CurtainDog - that's just so painful :(
Xorty
+4  A: 

In NetBeans the Desktop Application project type is a project based on an external library that was supposed to be the Swing Application Framework (which does things like session state of GUI controls and resource bundle management) but never matured. So that project type is outdated.

However Swing itself (the GUI platform) is `current' in the sense that it is the foremost GUI toolkit that Java has and will continue to have for some time.

I see, can you recommend an IDE to develop swing applications ?
Mina Samy
never matured? It is most mature Swing framework out here
Xorty
NetBeans is very good for GUI development so stick with that.
willcodejavaforfood
NetBeans has a very nice GUI-editor for Swing. Some consider it to be the best.
Thorbjørn Ravn Andersen
@Thorbjoern - I do!
Xorty
@Xorty: Swing Application Framework, or SAF for short (JSR I-forget-which) was never finished. It was essentially left in limbo (and contains some serious bugs). To see what I mean you may want to take a look at the Better Swing Application Framework (or any of the other forks out there). EDIT: Or are you confusing Netbeans platform with the Swing Application Framework? The Netbeans platform is certainly among the most mature.
this ? http://it2bug.com/htm/doc/w001/j_swing/p1/f19.htmIt's still in course, don't worry
Xorty
+1  A: 

The Swing Application Framework (JSR296) was a project intended to extract the common elements for developing applications with Swing. It is safe to use but is no longer being developed. The official page https://appframework.dev.java.net/ suggests a couple of alternatives, including using the netbeans platform itself and, given how greatly netbeans has matured, I would be keen to investigate this approach.

Swing itself is fine, it'll be around as long as Java is. Though in saying that desktop Java has never really taken hold in the same way other flavours have.

CurtainDog
Yes that's exactly the message. so what shall we do ? stick to swing or find another alternative ?
Mina Samy
SWT/SwingOr don't make desktops apps in Java :-)
Xorty