Answer the question
In order to leave comments, you need to log in
Is it possible to work with tray (system tray) using JavaFX 8?
I know how to work with Trey using Java AWT in the spirit of
systemTray.add(new TrayIcon(Toolkit.getDefaultToolkit().getImage("src/img/icon.png"), "Tray menu"));
// и так далее
Answer the question
In order to leave comments, you need to log in
He asked himself, he answered:
Having shoveled a bunch of English-language waste paper:
1. Is there an alternative to the AWT tray tools in Java 8?
Yes. Through the stump-deck-native methods (referring to OS calls). As I understand it, you need to dig in the direction of SWT and others like them. Yes, so it's easier to use AWT (for my task)
2. Is it possible to work with the tray using JavaFX 8 without resorting to awt/swing?
No. JavaFX 8 does not support tray handling. Perhaps support for working with the tray will be added in the 9th version. In the meantime, suck your thumb, bears.
Bottom line:
The application was left on JavaFX 8, and the work with the tray was moved to a separate class, which was written using AWT SystemTray.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question