File tree 4 files changed +4
-2
lines changed
4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ public void highlight() {
463
463
this .isHighlighted = true ;
464
464
465
465
idle ();
466
- Platform .runLater (this ::toFront );
466
+ Platform .runLater (this ::sendToFront );
467
467
}
468
468
469
469
/**
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ public void highlight() {
416
416
this .isHighlighted = true ;
417
417
418
418
idle ();
419
- Platform .runLater (this ::toFront );
419
+ Platform .runLater (this ::sendToFront );
420
420
}
421
421
422
422
/**
Original file line number Diff line number Diff line change 5
5
import javafx .fxml .FXMLLoader ;
6
6
import javafx .scene .Parent ;
7
7
import javafx .scene .Scene ;
8
+ import javafx .scene .image .Image ;
8
9
import javafx .stage .Stage ;
9
10
10
11
public class Main extends Application {
@@ -26,6 +27,7 @@ public void start(Stage primaryStage) throws Exception {
26
27
primaryStage .setResizable (false );
27
28
primaryStage .sizeToScene ();
28
29
primaryStage .setScene (scene );
30
+ primaryStage .getIcons ().add (new Image (Main .class .getResourceAsStream ("icon.png" )));
29
31
30
32
primaryStage .setOnCloseRequest (e -> {
31
33
Platform .exit ();
You can’t perform that action at this time.
0 commit comments