diff --git a/src/main/java/com/example/tictactoe_game/HelloApplication.java b/src/main/java/com/example/tictactoe_game/HelloApplication.java deleted file mode 100644 index fcae826ad395b309d765736b4a09e17d73882150..0000000000000000000000000000000000000000 --- a/src/main/java/com/example/tictactoe_game/HelloApplication.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.example.tictactoe_game; - -import javafx.application.Application; -import javafx.fxml.FXMLLoader; -import javafx.scene.Scene; -import javafx.stage.Stage; - -import java.io.IOException; - -public class HelloApplication extends Application { - @Override - public void start(Stage stage) throws IOException { - FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml")); - Scene scene = new Scene(fxmlLoader.load(), 320, 240); - stage.setTitle("Hello!"); - stage.setScene(scene); - stage.show(); - } - - public static void main(String[] args) { - launch(); - } -} \ No newline at end of file diff --git a/src/main/java/com/example/tictactoe_game/HelloController.java b/src/main/java/com/example/tictactoe_game/HelloController.java deleted file mode 100644 index 9e42d7fef467ba907c472e146b749f17056f64f8..0000000000000000000000000000000000000000 --- a/src/main/java/com/example/tictactoe_game/HelloController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.tictactoe_game; - -import javafx.fxml.FXML; -import javafx.scene.control.Label; - -public class HelloController { - @FXML - private Label welcomeText; - - @FXML - protected void onHelloButtonClick() { - welcomeText.setText("Welcome to JavaFX Application!"); - } -} \ No newline at end of file diff --git a/src/main/java/com/example/tictactoe_game/TicTacToeFX.java b/src/main/java/com/example/tictactoe_game/TicTacToeFX.java index 8067b819c41f0a6ad4e6f55c5fdfc943a0588dd6..cf9c9b8d0520811c5b034d3206154bb6ba7a62d9 100644 --- a/src/main/java/com/example/tictactoe_game/TicTacToeFX.java +++ b/src/main/java/com/example/tictactoe_game/TicTacToeFX.java @@ -1,3 +1,5 @@ +package com.example.tictactoe_game; + import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; diff --git a/src/main/resources/com/example/tictactoe_game/hello-view.fxml b/src/main/resources/com/example/tictactoe_game/hello-view.fxml deleted file mode 100644 index 2671a41cdb20f7c8f5ea9a6c2c0930ad8e116956..0000000000000000000000000000000000000000 --- a/src/main/resources/com/example/tictactoe_game/hello-view.fxml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<?import javafx.geometry.Insets?> -<?import javafx.scene.control.Label?> -<?import javafx.scene.layout.VBox?> - -<?import javafx.scene.control.Button?> -<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml" - fx:controller="com.example.tictactoe_game.HelloController"> - <padding> - <Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/> - </padding> - - <Label fx:id="welcomeText"/> - <Button text="Hello!" onAction="#onHelloButtonClick"/> -</VBox>