Java 桌面通知 Ubuntu
Ubuntu 在屏幕底部有桌面通知。我的问题是如何在 Java 中使用它。我找不到解决方案。我使用 Gnome-shell,但它与 Unity 的工作方式相同吗? Debian 也有同样的通知系统吗?如果您知道答案,我希望您能举个例子,以便我更好地理解。
Ubuntu has desktop notifications at the bottom of the screen. My question is how to use it with Java. I couldn't find a solution for this. I use Gnome-shell, but does it work on the same way with Unity? And has Debian also the same notification system? And if you know the answer, I hope you will give an example so I'll understand it better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SystemTray 和 TrayIcon 应该满足您的需要。如果没有,Twinkle 可能会:
The SystemTray and TrayIcon should do what you need. If not, maybe Twinkle will:
阅读 Swing 教程中关于如何使用系统托盘 一个工作示例。
Read the section from the Swing tutorial on How to Use The System Tray for a working example.