Java 桌面通知 Ubuntu

发布于 2024-12-20 16:51:45 字数 134 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

生寂 2024-12-27 16:51:45

SystemTrayTrayIcon 应该满足您的需要。如果没有,Twinkle 可能会:

Twinkle 允许您从 Java Swing 创建桌面通知
轻松申请!

The SystemTray and TrayIcon should do what you need. If not, maybe Twinkle will:

Twinkle lets you create desktop notifications from your Java Swing
application with ease!

骄兵必败 2024-12-27 16:51:45

Read the section from the Swing tutorial on How to Use The System Tray for a working example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文