• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 924
  • Last Modified:

Java Swing Application Framework

I'm starting to learn how to create simple JAVA desktop applications using NetBeans 6.9.1.  But when I create a new project, I get a disclaimer that reads:  

"Note that JSR-296 (Swing Application Framework) is no longer developed and will not become part of the official Java Development Kit as was originally planned. You can still use the Swing Application Framework library as it is, but no further development is expected.

If you are looking for a Swing-based application framework, consider using the NetBeans Platform platform.netbeans.org, which is a full-featured platform suitable for creating complex and scalable desktop applications. The Platform contains APIs that simplify the handling of windows, actions, files, and many other typical application elements."

Does this mean I should stay away from Swing since it will no longer be "official?"  What should I focus on?  Please explain what NetBeans means by "consider using the NetBeans Platform."

Thank you,
marc
0
marcparillo
Asked:
marcparillo
  • 5
  • 4
  • 3
2 Solutions
 
objectsCommented:
Its just the framework that has been dropped. You can still use Swing, just don't use the framework
http://netbeans.org/kb/68/java/gui-saf.html
0
 
for_yanCommented:

Swing will not be removed form JDK:

http://stackoverflow.com/questions/3167327/swing-removed-from-jdk

http://blogs.sun.com/theplanetarium/entry/the_future_of_swing

Now there are so many applications created using Swing, so that it is safe to believe
for all practical purposes  Swing will stay with Java forever
0
 
marcparilloAuthor Commented:
Can you explain "It's just the framework that has been dropped. You can still use Swing, just don't use the framework."  -- what's the difference between using Swing and the "framework."  

When I hear someone say "the framework" it sounds to me they're referring to the API that Swing is built on.  So, how can I use swing without using the framework?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
objectsCommented:
JSR-296 was a proposal for a framework to build Swing applications.
It has been dropped, Swing hasn't.

> So, how can I use swing without using the framework?

http://download.oracle.com/javase/tutorial/uiswing/
0
 
for_yanCommented:

All Swing components as we know them will stay and they are just part of Swing.
Swing Application Framework was supposed to be something on top of those
integrating them into infrastructure common
to most desktop application. It means that if you use Swing components and combine them youself
into any kind of interface you can feel safe, that all those components will stay and will be always supported.
It becomes understandable if you read the openeing phrases for the section 2 of dropped JSR 296 proposal:
http://jcp.org/en/jsr/detail?id=296#2

Don't know how far Netbeans already uses framework - I always try not to depend on anything,  specific, say  to IDE
Whatever is in JDK API - all JFrames, JButtons, JTextFields, etc. - all those will be fine and no one should be scared of using them.


0
 
marcparilloAuthor Commented:
Thank you for such helpful answers!  One more question along those same lines:

What classes, API's should I focus on to learn how to incorporate multimedia (video, images) into a Java desktop application.




0
 
objectsCommented:
have a look at Java2D and JMF
0
 
for_yanCommented:
Basic stuff like images are of course part of JDK.
I guess if you want to use more sophisticated stuff, I guess, there is Java Media Framework (JMF)

http://www.oracle.com/technetwork/java/javase/download-142937.html

0
 
marcparilloAuthor Commented:

Excellent! Thank you!  Could you also clear up some confusion I have about which type Java project I should focus on for my goals?

I want to create the sort of application that can be distributed (downloaded) and installed on a desktop or laptop computer that, when connected to the Internet, can communicate with a database on a remote server.  When using NetBeans, there are many project categories to choose from.  I know Java ME is for mobile apps.  But if I wanted to do something desktop-related, should I be focusing my attention on Java Applications and Java Web Start (utilizing Swing) or Java FX or something else?

Thanks!
0
 
for_yanCommented:
I'd start just with Java Application
0
 
for_yanCommented:
WebStart is just the way you may want to deploy it.
It may be convenient if you want your users to be able
to download the latets version - it may check ever time if a new version appeared.
But I guess, you may add this ability after you develop your application later,
if you feel the need. Java Application is the most general category.
0
 
marcparilloAuthor Commented:
Thank you again!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 5
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now