Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package com.commonwealthrobotics;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand All @@ -17,7 +18,10 @@ public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(Main.class.getResource("ui.fxml"));

Scene scene = new Scene(root, 620, 658);

stage.setOnCloseRequest(event -> {
Platform.exit();
System.exit(0);
});

stage.setScene(scene);
stage.show();
Expand Down