Search in sources :

Example 1 with CustomStage

use of com.github.plushaze.traynotification.models.CustomStage in project TrayNotification by PlusHaze.

the class TrayNotification method initStage.

private void initStage() {
    stage = new CustomStage(rootNode, StageStyle.UNDECORATED);
    stage.setScene(new Scene(rootNode));
    stage.setAlwaysOnTop(true);
    stage.setLocation(stage.getBottomRight());
    lblClose.setOnMouseClicked(e -> dismiss());
}
Also used : CustomStage(com.github.plushaze.traynotification.models.CustomStage) Scene(javafx.scene.Scene)

Aggregations

CustomStage (com.github.plushaze.traynotification.models.CustomStage)1 Scene (javafx.scene.Scene)1