How to change tray icon using Java?

I need to change the tray icon so that it notifies users of the number of unread messages.

How to do this with Java?

+3
source share
3 answers

Take a look at the class SystemTray.

+4
source

If you use java 6, then his article covers what you need, I believe.

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/

It has a simple sample file that shows how to install the sytemtray icon. It also covers some of the methods available.

In particular TrayIcon.setImage()

+3
source

Java , 6, JTray. . Java 6.

+1

Source: https://habr.com/ru/post/1776005/


All Articles