Skip to main content

tray actionlistener bug?

2 replies [Last post]
torok
Offline
Joined: 2006-02-17

Hey everyone...

When I create my TrayIcon I use the constructor that gives it a popup menu. Then, I register an actionListener to deal with left-mouse clicks. So, click right get a popup menu, click left and it generates a "PressAction" event. Fair enough.

If you click right to see the popup, then click somewhere else the popup menu will go away. BUT, after that you cannot generate any actions with the left mouse button UNTIL you have right-clicked again and selected something from the popup menu.

Anyone have any thoughts? Am I doing something wrong?

Thanks,

Tom

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
georgez
Offline
Joined: 2003-08-19

Hi Tom,

Which Tray release is you using? I just checked it with release 0.1.6 on Windows:
https://jdic.dev.java.net/files/documents/880/6862/tray-0.1.6-bin-window...

I didn't see the problem you described.

-George.

torok
Offline
Joined: 2006-02-17

Hmmmm... I'm pretty sure that's the version I'm using. I will investigate further on a couple other machines and get back to you if I can figure out what's going on.

Thanks!

Tom