3 messages in net.java.dev.jna.usersRe: [jna-users] Windows Tray Icon
FromSent OnAttachments
Barnaby AstlesDec 2, 2008 7:11 am 
Steve Sobol (JDN)Dec 2, 2008 7:30 am 
Barnaby AstlesDec 2, 2008 7:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Windows Tray IconActions...
From:Barnaby Astles (bjas@gmail.com)
Date:Dec 2, 2008 7:35:53 am
List:net.java.dev.jna.users

Thanks for the info

On Tue, Dec 2, 2008 at 10:30, Steve Sobol (JDN) <java@stevesobol.com>wrote:

Barnaby Astles wrote:

I am having some problems trying to interfaces to the system tray. The icon remains but I can not add an image to the icon, nor can I access the messages coming from the icon, or show a balloon message.

In this case, I think you may be much better off using SystemTray JXTrayIcon than trying to accomplish what you want to accomplish with JNA.

JXTrayIcon is an improved version of the Java 6 JTrayIcon:

http://weblogs.java.net/blog/alexfromsun/archive/2008/02/jtrayicon_updat.html

The native bits have all been worked out and the code works really well. If you are running JDK or JRE 1.6.0_10 or newer, you can even use a JPopupMenu on the tray icon instead of an AWT PopupMenu. The Java 6 SystemTray class lets you display balloon messages too.

Just my US$0.02

Thanks, Steve