【问题标题】:How to check The System tray is already exists or not?如何检查系统托盘是否已经存在?
【发布时间】:2020-02-29 11:48:19
【问题描述】:

有什么方法可以检查系统托盘是否已经存在?当我继续运行程序以创建系统托盘时,会出现多个事件,这意味着多个程序正在运行。那么,我需要检查系统托盘是否已经存在?

【问题讨论】:

标签: java swing system-tray


【解决方案1】:

你可以试试:

boolean trayExists = SystemTray.getSystemTray().getTrayIcons().length > 0;
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-21
  • 2019-03-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-13
相关资源
最近更新 更多