i have to detect the position 开发者_JAVA百科of the systemTray with java. I already placed an icon in the tray but don't know if its possible to get the position of that icon?
Best regards
Hemeroc
I had a similar problem. I wanted to display a popup window when right clicking on the tray icon, and no window when clicking on it. (Im still to investigate whether I can use the default popup menu). So I detected the location of the mouse on the screen when the icon way clicked (A property of the mouse event) and displayed my popup menu there.
No, the API does not offer that functionality. Why do you think you need that, anyway What are you actually trying to achieve?
精彩评论