Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须用 java 检测 systemTray 的位置。我已经在托盘中放置了一个图标,但不知道是否可以获取该图标的位置?
此致
赫默罗克
我有一个类似的问题。我想在右键单击托盘图标时显示一个弹出窗口,而单击它时没有窗口。(我还在调查我是否可以使用默认的弹出菜单)。因此,当单击图标方式(鼠标事件的属性)并在那里显示我的弹出菜单时,我检测到了鼠标在屏幕上的位置。
不,API 不提供该功能。无论如何,您为什么认为您需要它,您实际上想要实现什么?