Submitted On 27-APR-2005
tlund_
It looks like JDIC's TrayIcon and SystemTray APIs will be implemented in Mustang.
Great news. I'm really looking forward to this.
I have a request as well.
I know you have modified the JDIC TrayIcon API somewhat, so I'm not sure if you have implemented this already.. Anyway, here it goes:
In MS Windows, the behaviour when clicking on a tray icon seems to differ a bit with various programs: a single right mousebutton-click usually opens the popupmenu. a single left mousebutton-click can open a different popupmenu (like the
Submitted On 27-APR-2005
tlund_
continued:
(like the "Safely Remove Hardware" icon in Windows XP), or show the main program frame. A double click usually shows the main frame.
A common scenario is that a frame can be minimized to the tray (adding the trayicon to the systemtray). A double click on the trayicon shows the frame again, and usually removes the tray icon.
In other words: all this could be supported by TrayIcon by allowing to add a MouseListener to it. The programmer can then decide what the various mouse events will do.
This will allow the TrayIcon to have more flexibility.
I have a feeling people will be requesting this feature :)
Submitted On 28-APR-2005
Papa_Smurph
I agree with tlund_, the flexibility of a MouseListener would be quite useful. Maybe have a default behavior that the developer can override by supplying their own MouseListener, kind of like JFrame's default closing operation.
Submitted On 03-MAY-2005
anton_t
You will not be disappointed about mouse listeners =)
Submitted On 22-MAY-2005
tlund_
awsome. thanks. It seems this will be included in b38 due out on thursday 26th of may. Looking forward to trying out a mustang build for the first time :)
Submitted On 08-JUN-2005
Pepijn Schmitz
It would be very nice if you could also remove your frame's taskbar entry so that you can emulate the behaviour of for instance IM clients and email notifiers, which _only_ have a system tray icon. RFE 6192336 is about this, and should IMHO now also be implemented.
Submitted On 30-AUG-2005
idontusenumbers
The JDIC implementation currently does not support the the alpha channel in Microsoft Windows for TrayIcon. Is support for this already in place or planned or what?
Submitted On 11-SEP-2005
Just tried it under Gnome 2.10/Fedora 4, and it looks good.
However, since I'm a user, I always want more. So I wonder:
Is Swing JPopupMenu support planned? Or if not, what about a method to get the coordinates of the tray icon, so one does not have to be limited to a PopupMenu?
Submitted On 13-SEP-2005
anton_t
to Pepijn Schmitz:
To have a TrayIcon displayed in the system tray you mustn't keep a Frame shown at all. Just add your icon and enjoy =)
to idontusenumbers:
MS Windows itself doesn't support alpha blending for Taskbar Status Area icons.
to 11-SEP-2005:
Mustang (J2SE 6.0) will not support JPopupMenu in SystemTray API. Though, you're not limited to an AWT PopupMenu. You're able to listen mouse events on TrayIcon and show anything you like, including JPopupMenu. You may take the coordinates from those mouse events (they are absolute). Windows, unfortunatetly, doesn't provide API to get location of a Status Area icon, that's why there's no method like TrayIcon.getLocation().
Submitted On 09-DEC-2005
kopsaj
To anton_t: I've just tried and the icons in my WinXP SP2 tray do use alpha channel.
Submitted On 14-DEC-2005
anton_t
to kopsaj: Yes, it seems I was wrong about unability to use alpha channels for taskbar icons. But, to say the truth, I'm not sure I can see the use of this. You can make your whole taskbar transparent, but what a fun to have a single icon transparent in the taskbar?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|