You need to issue a notification like this. enter image description here How to make similar on . If there is a crutch only for Windows it is also suitable

Tried it , but failed

    2 answers 2

    Tried it, but failed

    Not very informative. Here is about the same example, but as simplified as possible:

     import java.awt.*; public class Test { public static void main(String[] args) throws Exception { if (SystemTray.isSupported()) { SystemTray tray = SystemTray.getSystemTray(); java.awt.Image image = Toolkit.getDefaultToolkit().getImage("images/tray.gif"); TrayIcon trayIcon = new TrayIcon(image); tray.add(trayIcon); trayIcon.displayMessage("Test.", "This is a message to test notifications in Windows 10", TrayIcon.MessageType.INFO); } } 

    }

    Here is a screen shot after its launch in the IntellyJ IDEA development environment, running Java 8, Windows 10: screenshot of the result of the example program

      Try this TrayNotification library, I think this is what you need.

      • does not work. Gives an error message. On the githabe in the explorations wrote - Herrgott
      • "Produces an error": stackoverflow.com/a/11275718/1341148 - JFXPanel. That is, it seems that you are trying to use JavaFX tools outside its context without running the JavaFX application itself. - bobzer