Skip to content

Instantly share code, notes, and snippets.

View thierrylafaye's full-sized avatar

Thierry Lafaye thierrylafaye

View GitHub Profile
@jewelsea
jewelsea / JavaFXTrayIconSample.java
Last active May 31, 2026 07:26
Demonstrate using the System Tray (AWT) to control a JavaFX application.
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;