I need to change the tray icon so that it notifies users of the number of unread messages.
How to do this with Java?
Take a look at the class SystemTray.
SystemTray
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()
TrayIcon.setImage()
Java , 6, JTray. . Java 6.
Source: https://habr.com/ru/post/1776005/More articles:Какова цель передачи родителя в конструктор класса Qt? - classBash connection ls output - bashКак я могу работать с исходным кодом UTF-16LE в Ruby? - rubymvn clean install using java 1.5 or 1.6 - mavenC #: What is the best way to send a support request by email? - c #WPF Dependency Property Property - Template Parent Element - propertiesprocessing large raster images in OpenGL ES and Android - androidWPF Dependency Property Property and Link Type Default Values - wpfWhat does the type of the void * & mean parameter and its use mean? - c ++Когда вы используете jQuery.removeClass(), он возвращает ошибку при запуске элемента, который не имеет этого класса? - javascriptAll Articles