Skip to content

Instantly share code, notes, and snippets.

@mmrd2007
mmrd2007 / JavaFXTrayIconSample.java
Created Sep 10, 2018 — forked from jewelsea/JavaFXTrayIconSample.java
Demonstrate using the System Tray (AWT) to control a JavaFX application.
View JavaFXTrayIconSample.java
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
import java.io.IOException;