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());
}
Aggregations