The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » SwingLabs

Thread: Any plans to move to JDK 1.6?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 1. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Nov 24, 2008 4:17 AM by: mefoster
mefoster

Posts: 3
Any plans to move to JDK 1.6?
Posted: Nov 24, 2008 1:13 AM
 
  Click to reply to this thread Reply

In LoginService.java, one of the imports is:

import org.jdesktop.swingworker.SwingWorker;

This is necessary for JDK 1.5 and less, but in 1.6 SwingWorker is actually included in the JDK itself so the import can be replaced with:

import javax.swing.SwingWorker;

and the external dependency on SwingWorker doesn't need to be there.

The reason I'm pointing this out: I'm working on packaging SwingX for Fedora (it's a dependency of some other packages I want to get in), and I made the above change to make it compile with JDK 1.6 without the external dependency. I just wanted to find out: are you likely to move to 1.6 any time soon (with its included SwingWorker), or should I just keep applying the above patch (not a problem, but I need to know the plans).

Thanks,

MEF

Message was edited by: mefoster

rah003

Posts: 894
Re: Any plans to move to JDK 1.6?
Posted: Nov 24, 2008 2:40 AM   in response to: mefoster
Helpful
  Click to reply to this thread Reply

Plan is to stop active support for Java 5 as soon as SwingX 1.0 is out. We will branch the code base at this point and main branch will be made Java 6+ compatible only. Now the issue is that we have still quite few things we want to solve before releasing 1.0 (check https://swingx.dev.java.net/issues for details) so there is no definitive date for the release set yet ... if you feel like fixing some of the issues, we would be more then happy to get your contribution.
BTW, old swingworker is packaged in extra jar that is part of our distribution so you can just include that jar in a classpath and don't need to apply patches to source.

mefoster

Posts: 3
Re: Any plans to move to JDK 1.6?
Posted: Nov 24, 2008 2:48 AM   in response to: rah003
 
  Click to reply to this thread Reply

> BTW, old swingworker is packaged in extra jar that is
> part of our distribution so you can just include that
> jar in a classpath and don't need to apply patches to
> source.

Yes, I noticed that, but unfortunately using privately-packaged libraries like that like that is explicitly not allowed in Fedora. I'll keep applying my source patch for now and look forward to the 1.0 release. :)

Thanks for the quick reply!

rah003

Posts: 894
Re: Any plans to move to JDK 1.6?
Posted: Nov 24, 2008 4:11 AM   in response to: mefoster
 
  Click to reply to this thread Reply

Not really a privately packaged. There is a project at swingworker.dev.java.net from which the jar comes, we just re-distribute it. Swingworker is also deployed in central maven repo.
Since swingworker and swingx have both same licensing, I don't see a reason why you should not be able to deploy siwngworker along with swingx. Am I missing something?
Cheers,
Jan

mefoster

Posts: 3
Re: Any plans to move to JDK 1.6?
Posted: Nov 24, 2008 4:17 AM   in response to: rah003
 
  Click to reply to this thread Reply

Yes, that's also a possibility: I'd have to create a package for swingworker too, and then swingx would depend on it. Which I would normally have done (and in fact did start to do), except that I noticed that swingworker had actually become a part of the official JDK as of 1.6 so I decided to take the lazy route and patch swingx instead. :)




 XML java.net RSS