mirror of
https://codeberg.org/qg-info-unterricht/zpg-graphentester.git
synced 2026-03-24 20:48:26 +01:00
Sync with upstream
This commit is contained in:
parent
39a2f13410
commit
66e8fa72bf
135 changed files with 38902 additions and 37757 deletions
|
|
@ -13,7 +13,8 @@ import control.Controller;
|
|||
* offen bleiben. Dann bitte das Programm über die Main-Funktion starten.
|
||||
*
|
||||
* @author Dirk Zechnall, Thomas Schaller
|
||||
* @version 12.02.2021 (v6.6)
|
||||
* @version 28.02.2023 (v7.0)
|
||||
*
|
||||
*/
|
||||
|
||||
public class GraphenTester extends Application {
|
||||
|
|
@ -23,15 +24,21 @@ public class GraphenTester extends Application {
|
|||
try {
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("/view/graphenalgorithmen.fxml"));
|
||||
Controller c = new Controller();
|
||||
c.setStage(primaryStage);
|
||||
loader.setController(c);
|
||||
VBox root = (VBox) loader.load();
|
||||
Scene scene = new Scene(root);
|
||||
Image icon = new Image("/view/icon.png");
|
||||
primaryStage.getIcons().add(icon);
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.setTitle("Graphentester");
|
||||
primaryStage.show();
|
||||
primaryStage.setOnCloseRequest(e->c.mBeenden(null));
|
||||
primaryStage.setOnCloseRequest(e ->
|
||||
{
|
||||
c.saveAktConfig();
|
||||
|
||||
c.mBeenden(null);
|
||||
System.exit(0);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue