|
|
||
Jan Haderka's BlogNovember 2007 ArchivesSwingX in central maven repositoryPosted by rah003 on November 28, 2007 at 12:30 AM | Permalink | Comments (8)Finally, SwingX is in central maven repository. Use following dependency definition to add it to your build:
<dependency>
<groupId>org.swinglabs</groupId>
<artifactId>swingx</artifactId>
<version>0.9.1</version>
</dependency>
similarly you can declare use of version 0.9 as both of them are available. This declaration is valid for both JDK 1.5 and 1.6. All extra dependencies necessary for 1.5 (swing-layout, swing-worker, multiple-gradient-paints) will be picked up automatically via activation profile. If you need just swing-layout or swing-worker for your project, they are both in central repo as well, under the org.swinglabs groupId. Thanks a lot to Wim for all help with getting all of swinglabs to maven. SwingX 0.9.1 releasedPosted by rah003 on November 20, 2007 at 03:59 AM | Permalink | Comments (14)It is barely a month ago I have announced SwingX 0.9 release. Since then SwingX have seen renewed interest from users and some major work done on the backlog by its commiters. Due to this and due to the fact that we have managed to fix about 75 issues within last month, I'm happy to announce next release: SwingX 0.9.1 is out. Download here. This release brings some changes to the names of components as well as changes to the bundles. So make sure you review list of resolved issues to see what has changed. Those changes were necessary to correct violations of naming conventions and to streamline further development of localization and addon support. Apart from all the changes and bug fixes there are also new features delivered with this release -JXLoginPane now has support for CapsLock notification, JXHeader is more friendly and configurable, JXMultiSplitPane now paints dividers and many others. Make sure you check it out. Log me in, log me out!Posted by rah003 on November 02, 2007 at 08:41 AM | Permalink | Comments (3)There have been for long time open enhancement request in SwingX for notification about caps lock being switched on in JXLoginPanel. Over a time it acquired quite few votes (in comparison to your average swingx issue, not that 10 votes is much in absolute numbers) so I thought lets do this, it can't be that difficult. In your average C program you just query the driver when you want to know the state of the caps lock or any other key for that matter. Not so in your average java program. Don't get me wrong, I know there is a method to get the state of the locking key The question remains: how to implement support or checking caps lock when function provided by the JDK doesn't do the job properly? You can rely on
The second point could be possibly resolved by adding timer to the implementation which would check for the state by producing fake keyboard events, but it would also increase complexity of the feature (and thus putting even more weight on the first point - possible implementation issues). Hopefully we can remove all this once the LockingKeyState can be obtained reliably on all platforms by querying jdk method. In the mean time I would be really interested in hearing from you how it works, or doesn't for that matter.
And since everybody naturally loves runnable demos here is one that shows Login Panel at work: BTW, as you will notice, this little demo is signed and it needs to be signed in order for CapsLock notification to work. While this might be annoying at first consider this: When your application is distributed over the web and you require user to pass their password in, you should sign your application anyway. When running any app locally CapsLock notification will work without signing, when running unsigned app over the web the support will be switched off automatically and no exceptions thrown. Enjoy! | ||
|
|