Chronicles of the Trough: Sneak Preview
align="left" hspace="8"/>
style='text-decoration: none;'>NOT a part of "Gooey Beans," the GUI part of a trilogy in 42 parts
-->
Here is a sneak preview of a trivial feed reader app using the Java6 SystemTray.
It checks a few preconfigured (Java) feeds every 10 minutes,
popping up a message when a new article is spotted.
![]()
(FeedTray, 1M/250k, unsandboxed, Java6)
The feedtray
app itself is small (18k using pack200), but depends on
ROME
and AppFramework
and their dependencies ie. jDOM
and SwingWorker,
so the total packed size is around 250k, and unpacked, well... much more!
src="http://aptframework.dev.java.net/evanx/images/feedtray.png"
/>
Note that when you minimise or close the window, the frame is disposed, but the app
still runs in the SystemTray. You have to right-click on the TrayIcon and choose "Exit"
to exit the app and dispose its JVM instance.
Resources
You can browse the code for this exercise at
feedtray.dev.java.net.
See the classes FeedTrayApplication (and it's resource file),
FeedSystemTray, FeedManager, FeedReader.
FeedTray requires rome.dev.java.net
(which requires jdom.org),
and AppFramework.dev.java.net
(which requires swing-worker ie. org.jdesktop.SwingWorker).
Also see "New System Tray Functionality in Java SE 6,"
on the Sun Developer Network,
and "Displaying messages in the system tray,"
by Michael Nascimento Santos.
- Login or register to post comments
- Printer-friendly version
- evanx's blog
- 787 reads





