Archive for November, 2005

Nov 29 2005

New System Tray API in JDK 6 (Mustang)

Published by Tony under Old Restored

Robert Eckstein writes:

The latest beta version of the Java 2 Platform Standard Edition 6.0 version (Mustang) now lets you access the system tray in Java with the help of two separate classes in the java.awt package: SystemTray and TrayIcon. These classes give you the ability to add graphics, popup menus, and floating tip functionality to the system tray. If approved by the JSR 270 Expert Group through the Java Community Process, you can expect to find this feature in the final version of Mustang.

Article here I’ve also recently tried the built-in splash screen API that Mustang will ship with. Pretty nifty.

No responses yet

Nov 28 2005

Rendering HTML in your Swing Applications

Published by Tony under Old Restored

I recently wrote a news reader application (RSS only at the moment) that displays the messages using HTML. In doing so, I discovered the terrible state of the javax.swing.text.html.HTMLEditorKit. From the Javadoc:

The default support is provided by this class, which supports HTML version 3.2 (with some extensions), and is migrating toward version 4.0.

Continue Reading »

No responses yet

Nov 23 2005

JTable right-click row selection

Published by Tony under Old Restored

By default a left mouse click on a JTable row will select that row, but it’s not the same for the right mouse button. It takes bit more work to get a JTable to select a row based on right mouse clicks. You might be able to do it by subclassing JTable or ListSelectionModel, but there’s an easier way.
Continue Reading »

13 responses so far