Skip to content

Commit 665475f

Browse files
committed
Updated functions and app icon
1 parent 7a76179 commit 665475f

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

Graph/src/elements/GraphEdge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public void highlight() {
463463
this.isHighlighted = true;
464464

465465
idle();
466-
Platform.runLater(this::toFront);
466+
Platform.runLater(this::sendToFront);
467467
}
468468

469469
/**

Graph/src/elements/NonDirectionalEdge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public void highlight() {
416416
this.isHighlighted = true;
417417

418418
idle();
419-
Platform.runLater(this::toFront);
419+
Platform.runLater(this::sendToFront);
420420
}
421421

422422
/**

Graph/src/graph/Main.java

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import javafx.fxml.FXMLLoader;
66
import javafx.scene.Parent;
77
import javafx.scene.Scene;
8+
import javafx.scene.image.Image;
89
import javafx.stage.Stage;
910

1011
public class Main extends Application {
@@ -26,6 +27,7 @@ public void start(Stage primaryStage) throws Exception {
2627
primaryStage.setResizable(false);
2728
primaryStage.sizeToScene();
2829
primaryStage.setScene(scene);
30+
primaryStage.getIcons().add(new Image(Main.class.getResourceAsStream("icon.png")));
2931

3032
primaryStage.setOnCloseRequest(e -> {
3133
Platform.exit();

Graph/src/graph/icon.png

22.4 KB
Loading

0 commit comments

Comments
 (0)