flagging fixes

This commit is contained in:
tyler :3
2024-05-17 19:11:59 +01:00
parent 6fc162760d
commit c3d8b672b1
3 changed files with 23 additions and 18 deletions
@@ -5,16 +5,19 @@ import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage stage) throws IOException {
Image icon = new Image(String.valueOf(getClass().getResource("winmine.png")));
FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("minesweeper.fxml"));
Scene scene = new Scene(fxmlLoader.load());
stage.setTitle("Minesweeper");
stage.setScene(scene);
stage.setResizable(false);
stage.getIcons().add(icon);
stage.show();
}