1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-11-13 07:33:44 +01:00
This commit is contained in:
Carlos Galindo 2016-06-13 12:10:47 +02:00
parent a243a6f4b7
commit 55c662291d
Signed by: kauron
GPG key ID: 83E68706DEE119A3
2 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import javafx.application.Application;
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 {
@ -14,11 +15,10 @@ public class Main extends Application {
AppConfig.load();
Parent root = FXMLLoader.load(Main.class.getResource("view/main.fxml"));
primaryStage.setTitle("JStudy");
primaryStage.getIcons().add(new Image(Main.class.getResourceAsStream("img/icon.png")));
primaryStage.setScene(new Scene(root));
primaryStage.show();
primaryStage.setOnCloseRequest(event -> {
AppConfig.save();
});
primaryStage.setOnCloseRequest(event -> AppConfig.save());
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB