Skip to content

Commit

Permalink
Updated functions and app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AramZahedi committed Jul 20, 2019
1 parent 7a76179 commit 665475f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Graph/src/elements/GraphEdge.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public void highlight() {
this.isHighlighted = true;

idle();
Platform.runLater(this::toFront);
Platform.runLater(this::sendToFront);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Graph/src/elements/NonDirectionalEdge.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public void highlight() {
this.isHighlighted = true;

idle();
Platform.runLater(this::toFront);
Platform.runLater(this::sendToFront);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions Graph/src/graph/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

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

primaryStage.setOnCloseRequest(e -> {
Platform.exit();
Expand Down
Binary file added Graph/src/graph/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 665475f

Please sign in to comment.