开发者

How to detect the position of the system tray with java?

开发者 https://www.devze.com 2022-12-24 06:33 出处:网络
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?

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号