Skip to content
Snippets Groups Projects
Commit 4164aa66 authored by Julian's avatar Julian
Browse files

Ordnerstruktur richtig

parent 722efb65
No related branches found
No related tags found
1 merge request!1Dev
......@@ -7,10 +7,10 @@ import javafx.stage.Stage;
import java.io.IOException;
public class HelloApplication extends Application {
public class Main extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("hello-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
stage.setTitle("Hello!");
stage.setScene(scene);
......@@ -20,4 +20,4 @@ public class HelloApplication extends Application {
public static void main(String[] args) {
launch();
}
}
\ No newline at end of file
}
package de.uni_hannover.swt.tictactoe;
package de.uni_hannover.swt.tictactoe.controller;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
public class HelloController {
public class MainController {
@FXML
private Label welcomeText;
......
......@@ -5,4 +5,6 @@ module de.uni_hannover.swt.tictactoe {
opens de.uni_hannover.swt.tictactoe to javafx.fxml;
exports de.uni_hannover.swt.tictactoe;
exports de.uni_hannover.swt.tictactoe.controller;
opens de.uni_hannover.swt.tictactoe.controller to javafx.fxml;
}
\ No newline at end of file
......@@ -6,7 +6,7 @@
<?import javafx.scene.control.Button?>
<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml"
fx:controller="de.uni_hannover.swt.tictactoe.HelloController">
fx:controller="de.uni_hannover.swt.tictactoe.controller.MainController">
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
</padding>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment