diff --git a/.gitignore b/.gitignore
index a1c2a23..c25f212 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,6 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
+
+.gradle
+.idea
diff --git a/.gradle/7.4/fileHashes/fileHashes.lock b/.gradle/7.4/fileHashes/fileHashes.lock
index 00ae177..f90d1f6 100644
Binary files a/.gradle/7.4/fileHashes/fileHashes.lock and b/.gradle/7.4/fileHashes/fileHashes.lock differ
diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
index 0041aac..46c3158 100644
Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/.idea/.gitignore b/.idea/.gitignore
index 73f69e0..25434b2 100644
--- a/.idea/.gitignore
+++ b/.idea/.gitignore
@@ -6,3 +6,6 @@
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
+
+../gradle
+../.idea
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index b73660a..b589d56 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/cssdialects.xml b/.idea/cssdialects.xml
new file mode 100644
index 0000000..75ec9f0
--- /dev/null
+++ b/.idea/cssdialects.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml
new file mode 100644
index 0000000..02b915b
--- /dev/null
+++ b/.idea/git_toolbox_prj.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index ccf41b5..33984e8 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -1,5 +1,6 @@
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index f09f125..dea5310 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,8 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 24699f1..dfbf65f 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -9,6 +9,12 @@
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
+ id 'org.openjfx.javafxplugin' version '0.0.12'
+}
+
+javafx {
+ version = '17.0.1'
+ modules = [ 'javafx.controls', 'javafx.fxml' ]
}
repositories {
@@ -22,6 +28,8 @@ dependencies {
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1.1-jre'
+
+
}
application {
diff --git a/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml
new file mode 100644
index 0000000..cd4c4cd
--- /dev/null
+++ b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/Style.css b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/Style.css
new file mode 100644
index 0000000..d69b698
--- /dev/null
+++ b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/Style.css
@@ -0,0 +1,10 @@
+#mainContainer {
+ -fx-min-height: 100%;
+ -fx-min-width: 100%;
+ -fx-background-color: #f8f8f8;
+
+}
+
+/*
+Formular Right Side
+ */
diff --git a/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml
new file mode 100644
index 0000000..2372a7f
--- /dev/null
+++ b/app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/build/tmp/compileJava/previous-compilation-data.bin b/app/build/tmp/compileJava/previous-compilation-data.bin
new file mode 100644
index 0000000..840f5c6
Binary files /dev/null and b/app/build/tmp/compileJava/previous-compilation-data.bin differ
diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java
index e06a54c..2099098 100644
--- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java
+++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java
@@ -3,12 +3,11 @@
*/
package ch.zhaw.projekt2.turnierverwaltung;
-public class App {
- public String getGreeting() {
- return "Hello World!";
- }
+import ch.zhaw.projekt2.turnierverwaltung.main.MainWindow;
+import javafx.application.Application;
+public class App {
public static void main(String[] args) {
- System.out.println(new App().getGreeting());
+ Application.launch(MainWindow.class,args);
}
}
diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java
new file mode 100644
index 0000000..29a8990
--- /dev/null
+++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java
@@ -0,0 +1,39 @@
+package ch.zhaw.projekt2.turnierverwaltung.main;
+
+import javafx.application.Application;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Scene;
+import javafx.scene.layout.Pane;
+import javafx.stage.Stage;
+
+import java.io.IOException;
+
+public class MainWindow extends Application {
+ @Override
+ public void start(Stage primaryStage) throws Exception {
+ FXMLLoader loader = new FXMLLoader(getClass().getResource("mainWindow.fxml"));
+ Pane pane = loader.load();
+ Scene scene = new Scene(pane);
+ primaryStage.setScene(scene);
+ primaryStage.setFullScreen(true);
+ primaryStage.setResizable(false);
+ primaryStage.show();
+ }
+
+ //Can be used to Open new Scene in same Stage.
+ //This way possible to later give object to Controller
+ public void startParticipand(Stage stage) {
+ FXMLLoader loader = new FXMLLoader(getClass().getResource("..\\participandAddFormular\\participandFormular.fxml"));
+ try {
+ Pane pane = loader.load();
+ Scene scene = new Scene(pane);
+ stage.setScene(scene);
+ stage.setFullScreen(true);
+ stage.setResizable(false);
+ stage.show();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ }
+}
diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindowController.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindowController.java
new file mode 100644
index 0000000..992b4f4
--- /dev/null
+++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindowController.java
@@ -0,0 +1,69 @@
+package ch.zhaw.projekt2.turnierverwaltung.main;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.scene.control.Button;
+import javafx.scene.control.ChoiceBox;
+import javafx.scene.control.Label;
+import javafx.scene.control.ListView;
+import javafx.scene.control.MenuItem;
+import javafx.scene.layout.GridPane;
+import javafx.scene.layout.VBox;
+
+public class MainWindowController {
+
+ @FXML
+ private MenuItem closeBtn;
+
+ @FXML
+ private Button createBtn;
+
+ @FXML
+ private GridPane grid;
+
+ @FXML
+ private VBox mainContainer;
+
+ @FXML
+ private Label mainTitle;
+
+ @FXML
+ private ChoiceBox> modusChoiceBox;
+
+ @FXML
+ private Label newTournamentFormularTitle;
+
+ @FXML
+ private Button openBtn;
+
+ @FXML
+ private MenuItem setLan;
+
+ @FXML
+ private Label tournierListTitle;
+
+ @FXML
+ private ListView> tournierListView;
+
+ @FXML
+ private Label tournierModLabel;
+
+ @FXML
+ private Label turnierNameLabel;
+
+ @FXML
+ void closeApplication(ActionEvent event) {
+
+ }
+
+ @FXML
+ void createTournament(ActionEvent event) {
+
+ }
+
+ @FXML
+ void openTournier(ActionEvent event) {
+
+ }
+
+}
diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participantFormularController.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participantFormularController.java
new file mode 100644
index 0000000..47f7acc
--- /dev/null
+++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participantFormularController.java
@@ -0,0 +1,97 @@
+package ch.zhaw.projekt2.turnierverwaltung.participandAddFormular;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.scene.control.Button;
+import javafx.scene.control.Label;
+import javafx.scene.control.ListView;
+import javafx.scene.control.MenuItem;
+import javafx.scene.control.TextField;
+import javafx.scene.input.MouseEvent;
+import javafx.scene.layout.GridPane;
+import javafx.scene.layout.VBox;
+
+public class participantFormularController {
+
+ @FXML
+ private Button addBtn;
+
+ @FXML
+ private Label birthDateLabel;
+
+ @FXML
+ private TextField birthDateTextField;
+
+ @FXML
+ private VBox changeBtn;
+
+ @FXML
+ private MenuItem closeBtn;
+
+ @FXML
+ private Label firstNameLabel;
+
+ @FXML
+ private TextField firstNameTextField;
+
+ @FXML
+ private GridPane grid;
+
+ @FXML
+ private VBox mainContainer;
+
+ @FXML
+ private Label mainTitle;
+
+ @FXML
+ private Label newParticipantFormularTitle;
+
+ @FXML
+ private Button openBtn;
+
+ @FXML
+ private Label participantListTitle;
+
+ @FXML
+ private ListView> participantListView;
+
+ @FXML
+ private Label participantNameLabel;
+
+ @FXML
+ private TextField participantNameTextField;
+
+ @FXML
+ private Label phoneNumberLabel;
+
+ @FXML
+ private TextField phoneNumberTextField;
+
+ @FXML
+ private Button saveBtn;
+
+ @FXML
+ private MenuItem setLan;
+
+ @FXML
+ void addParticipant(ActionEvent event) {
+
+ }
+
+ @FXML
+ void changeParticipant(MouseEvent event) {
+
+ }
+
+ @FXML
+ void closeApplication(ActionEvent event) {
+
+ }
+
+ @FXML
+ void save(ActionEvent event) {
+
+ }
+
+}
+
diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentListController.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentListController.java
new file mode 100644
index 0000000..adbfb59
--- /dev/null
+++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentListController.java
@@ -0,0 +1,4 @@
+package ch.zhaw.projekt2.turnierverwaltung.tournamentList;
+
+public class tournamentListController {
+}
diff --git a/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml
new file mode 100644
index 0000000..cd4c4cd
--- /dev/null
+++ b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/Style.css b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/Style.css
new file mode 100644
index 0000000..d69b698
--- /dev/null
+++ b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/Style.css
@@ -0,0 +1,10 @@
+#mainContainer {
+ -fx-min-height: 100%;
+ -fx-min-width: 100%;
+ -fx-background-color: #f8f8f8;
+
+}
+
+/*
+Formular Right Side
+ */
diff --git a/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participandFormular.fxml b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participandFormular.fxml
new file mode 100644
index 0000000..c70f0ca
--- /dev/null
+++ b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participandFormular.fxml
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml
new file mode 100644
index 0000000..2372a7f
--- /dev/null
+++ b/app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+