From e0b1616edf9107db99fe61a81aa2292dd1c12782 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Sun, 24 Apr 2022 22:06:03 +0200 Subject: [PATCH 01/25] Created classes to test FileIO --- .../zhaw/projekt2/turnierverwaltung/App.java | 3 ++ .../projekt2/turnierverwaltung/FileIO.java | 51 +++++++++++++++++++ .../turnierverwaltung/Tournament.java | 4 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java 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..d00a1a6 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java @@ -10,5 +10,8 @@ public class App { public static void main(String[] args) { System.out.println(new App().getGreeting()); + FileIO io = new FileIO(); + Tournament tournament= new Tournamenttest("hello"); + io.saveTournament(tournament); } } diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java new file mode 100644 index 0000000..ca86b5c --- /dev/null +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java @@ -0,0 +1,51 @@ +package ch.zhaw.projekt2.turnierverwaltung; + +import java.io.*; +import java.util.ArrayList; +import java.util.List; + + +public class FileIO { + File saveDir; + File saves; + + + public FileIO() { + String savePath = System.getProperty("user.dir")+File.separator+"tournierverwaltung_angrynerds"; + this.saveDir = new File(savePath); + saves = new File(saveDir, "saves"); + } + + public void getList() { + + } + + public void loadTournament(Tournament tournament) { + + } + + public void saveTournament(Tournament tournament) { + File newSave = new File(saves, tournament.getName()+".txt"); + try { + newSave.createNewFile(); + } catch (IOException e) { + e.printStackTrace(); + } + + try { + ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newSave)); + out.writeObject(tournament); + out.close(); + System.out.println("Save File" + tournament.getName()+".txt being saved to " + saves.getAbsolutePath()); + + } catch (IOException e) { + e.printStackTrace(); + } + + } + + public void getTournament(String storageSpace) { + + } + +} diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java index c6d6211..4b6b8de 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java @@ -1,6 +1,8 @@ package ch.zhaw.projekt2.turnierverwaltung; -public abstract class Tournament { +import java.io.Serializable; + +public abstract class Tournament implements Serializable { private String name; public Tournament(String name){ From e1fdc5deac098f113d6d6ede743054b75914e823 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 28 Apr 2022 03:07:51 +0200 Subject: [PATCH 02/25] finished initial draft of file io and also added some test cases to disscuss in app --- .../zhaw/projekt2/turnierverwaltung/App.java | 19 +++++++++++- .../projekt2/turnierverwaltung/FileIO.java | 30 ++++++++++++------- .../turnierverwaltung/Tournamenttest.java | 7 +++++ 3 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java 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 d00a1a6..dc9a2f3 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java @@ -3,6 +3,10 @@ */ package ch.zhaw.projekt2.turnierverwaltung; +import java.io.File; +import java.util.ArrayList; +import java.util.List; + public class App { public String getGreeting() { return "Hello World!"; @@ -10,8 +14,21 @@ public class App { public static void main(String[] args) { System.out.println(new App().getGreeting()); + FileIO io = new FileIO(); - Tournament tournament= new Tournamenttest("hello"); + Tournament tournament= new Tournamenttest("helloo"); io.saveTournament(tournament); + + + List tournaments = io.getList(); + + for (File name: tournaments) { + + System.out.println(name.getName()); + } + + Tournament retrieved = io.loadTournament(tournaments.get(0)); + System.out.println("data retreived:"); + System.out.println(retrieved.getName()); } } diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java index ca86b5c..9271812 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java @@ -2,6 +2,7 @@ package ch.zhaw.projekt2.turnierverwaltung; import java.io.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; @@ -11,21 +12,33 @@ public class FileIO { public FileIO() { - String savePath = System.getProperty("user.dir")+File.separator+"tournierverwaltung_angrynerds"; + String savePath = System.getProperty("user.dir") + File.separator + "tournierverwaltung_angrynerds"; this.saveDir = new File(savePath); + saveDir.mkdir(); saves = new File(saveDir, "saves"); + saves.mkdir(); } - public void getList() { - + public List getList() { + return Arrays.asList(saves.listFiles()); } - public void loadTournament(Tournament tournament) { + public Tournament loadTournament(File tournamentFile) { + Tournament tournament; + try { + ObjectInputStream in = new ObjectInputStream(new FileInputStream(tournamentFile)); + tournament = (Tournament) in.readObject(); + in.close(); + } catch (ClassNotFoundException | IOException e) { + throw new RuntimeException(e); + } + + return tournament; } public void saveTournament(Tournament tournament) { - File newSave = new File(saves, tournament.getName()+".txt"); + File newSave = new File(saves, tournament.getName() + ".txt"); try { newSave.createNewFile(); } catch (IOException e) { @@ -36,16 +49,11 @@ public class FileIO { ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newSave)); out.writeObject(tournament); out.close(); - System.out.println("Save File" + tournament.getName()+".txt being saved to " + saves.getAbsolutePath()); + System.out.println("Save File" + tournament.getName() + ".txt being saved to " + saves.getAbsolutePath()); } catch (IOException e) { e.printStackTrace(); } } - - public void getTournament(String storageSpace) { - - } - } diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java new file mode 100644 index 0000000..2b259a9 --- /dev/null +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java @@ -0,0 +1,7 @@ +package ch.zhaw.projekt2.turnierverwaltung; + +public class Tournamenttest extends Tournament { + public Tournamenttest(String name) { + super(name); + } +} From 380250f60eb6b628e10d82b85dfcfe767401c892 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 28 Apr 2022 14:35:29 +0200 Subject: [PATCH 03/25] changes so that savepath can be set elsewhere --- .../zhaw/projekt2/turnierverwaltung/App.java | 2 +- .../projekt2/turnierverwaltung/FileIO.java | 23 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) 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 dc9a2f3..816e6f5 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java @@ -15,7 +15,7 @@ public class App { public static void main(String[] args) { System.out.println(new App().getGreeting()); - FileIO io = new FileIO(); + FileIO io = new FileIO(System.getProperty("user.dir") + File.separator + "tournierverwaltung_angrynerds"); Tournament tournament= new Tournamenttest("helloo"); io.saveTournament(tournament); diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java index 9271812..87e357a 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java @@ -1,21 +1,25 @@ package ch.zhaw.projekt2.turnierverwaltung; -import java.io.*; -import java.util.ArrayList; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.ObjectOutputStream; +import java.io.ObjectInputStream; import java.util.Arrays; import java.util.List; public class FileIO { - File saveDir; - File saves; + private File mainDir; + private File saves; - public FileIO() { - String savePath = System.getProperty("user.dir") + File.separator + "tournierverwaltung_angrynerds"; - this.saveDir = new File(savePath); - saveDir.mkdir(); - saves = new File(saveDir, "saves"); + public FileIO(String saveLocation) { + this.mainDir = new File(saveLocation); + mainDir.mkdir(); + saves = new File(mainDir, "saves"); saves.mkdir(); } @@ -29,6 +33,7 @@ public class FileIO { ObjectInputStream in = new ObjectInputStream(new FileInputStream(tournamentFile)); tournament = (Tournament) in.readObject(); in.close(); + System.out.println("Save File" + tournament.getName() + ".txt being saved to " + saves.getAbsolutePath()); } catch (ClassNotFoundException | IOException e) { throw new RuntimeException(e); From 48fba228533f6e9f4cba246f1ba3cb7eae7fe692 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 28 Apr 2022 14:10:41 +0200 Subject: [PATCH 04/25] added Date of Birth to Player.java --- .../zhaw/projekt2/turnierverwaltung/Player.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java index 567f49b..4273fd1 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java @@ -1,10 +1,21 @@ package ch.zhaw.projekt2.turnierverwaltung; -public class Player extends Person{ +import java.util.Date; +public class Player extends Person implements Participant{ - public Player(String firstName, String name, String phoneNumber){ + private Date dateOfBirth; + + public Player(String firstName, String name, String phoneNumber, Date dateOfBirth){ super(firstName, name, phoneNumber); + setDateOfBirth(dateOfBirth); } + public Date getDateOfBirth() { + return dateOfBirth; + } + + public void setDateOfBirth(Date dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } } From 0164c286fb25a5274d5f14c51f267acabde11aed Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 28 Apr 2022 14:50:45 +0200 Subject: [PATCH 05/25] made Tournament not abstract. --- .../java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java index 4b6b8de..0da286d 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java @@ -2,7 +2,7 @@ package ch.zhaw.projekt2.turnierverwaltung; import java.io.Serializable; -public abstract class Tournament implements Serializable { +public class Tournament implements Serializable { private String name; public Tournament(String name){ From 263d79ba8e95a40d926fdb787963e0ca769a2ed4 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 28 Apr 2022 14:57:41 +0200 Subject: [PATCH 06/25] removed Class Tournamenttest.java --- .../main/java/ch/zhaw/projekt2/turnierverwaltung/App.java | 2 +- .../ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java 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 816e6f5..e04444b 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java @@ -16,7 +16,7 @@ public class App { System.out.println(new App().getGreeting()); FileIO io = new FileIO(System.getProperty("user.dir") + File.separator + "tournierverwaltung_angrynerds"); - Tournament tournament= new Tournamenttest("helloo"); + Tournament tournament= new Tournament("helloo"); io.saveTournament(tournament); diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java deleted file mode 100644 index 2b259a9..0000000 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournamenttest.java +++ /dev/null @@ -1,7 +0,0 @@ -package ch.zhaw.projekt2.turnierverwaltung; - -public class Tournamenttest extends Tournament { - public Tournamenttest(String name) { - super(name); - } -} From 509192b4039fffbc5ae8a0ad41d9dd817849fc16 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 28 Apr 2022 18:07:57 +0200 Subject: [PATCH 07/25] created FileIOTest and changed Exception Handling of File IO --- .../zhaw/projekt2/turnierverwaltung/App.java | 14 -- .../projekt2/turnierverwaltung/FileIO.java | 33 +++-- .../turnierverwaltung/FileIOTest.java | 126 ++++++++++++++++++ .../FileIORead/saves/empty.txt | 0 4 files changed, 141 insertions(+), 32 deletions(-) create mode 100644 app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java create mode 100644 app/src/test/resources/ch/zhaw/projekt2/turnierverwaltung/FileIORead/saves/empty.txt 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 e04444b..ce8229a 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/App.java @@ -16,19 +16,5 @@ public class App { System.out.println(new App().getGreeting()); FileIO io = new FileIO(System.getProperty("user.dir") + File.separator + "tournierverwaltung_angrynerds"); - Tournament tournament= new Tournament("helloo"); - io.saveTournament(tournament); - - - List tournaments = io.getList(); - - for (File name: tournaments) { - - System.out.println(name.getName()); - } - - Tournament retrieved = io.loadTournament(tournaments.get(0)); - System.out.println("data retreived:"); - System.out.println(retrieved.getName()); } } diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java index 87e357a..ad2e92d 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FileIO.java @@ -1,12 +1,7 @@ package ch.zhaw.projekt2.turnierverwaltung; -import java.io.File; -import java.io.FileOutputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.ObjectOutputStream; -import java.io.ObjectInputStream; +import java.io.*; import java.util.Arrays; import java.util.List; @@ -27,22 +22,24 @@ public class FileIO { return Arrays.asList(saves.listFiles()); } - public Tournament loadTournament(File tournamentFile) { + /** + * + * @param tournamentFile + * @return + * @throws ClassNotFoundException + * @throws IOException File not found or not readable. + */ + public Tournament loadTournament(File tournamentFile) throws ClassNotFoundException, IOException { Tournament tournament; - try { - ObjectInputStream in = new ObjectInputStream(new FileInputStream(tournamentFile)); - tournament = (Tournament) in.readObject(); - in.close(); - System.out.println("Save File" + tournament.getName() + ".txt being saved to " + saves.getAbsolutePath()); - - } catch (ClassNotFoundException | IOException e) { - throw new RuntimeException(e); - } - + FileInputStream fileInputStream = new FileInputStream(tournamentFile); + ObjectInputStream in = new ObjectInputStream(fileInputStream); + tournament = (Tournament) in.readObject(); + in.close(); //TODO: Evtl Try/finally? + System.out.println("Read File" + tournament.getName() + ".txt being read from " + saves.getAbsolutePath()); return tournament; } - public void saveTournament(Tournament tournament) { + public void saveTournament(Tournament tournament) throws IllegalArgumentException { File newSave = new File(saves, tournament.getName() + ".txt"); try { newSave.createNewFile(); diff --git a/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java b/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java new file mode 100644 index 0000000..e11bff8 --- /dev/null +++ b/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java @@ -0,0 +1,126 @@ +package ch.zhaw.projekt2.turnierverwaltung; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Comparator; +import java.util.List; + +import static org.junit.jupiter.api.Assertions.*; + +class FileIOTest { + + String RESOURCES_DIR = ".\\src\\test\\resources\\ch\\zhaw\\projekt2\\turnierverwaltung\\"; + String mainDir; + String saveDir; + FileIO io; + + @Test + void FileIONewDir() throws IOException { + mainDir = RESOURCES_DIR + "FileIONew"; + saveDir = mainDir + "\\" + "saves"; + File mainDirFile = new File(mainDir); + File saveDirFile = new File(mainDir); + try{ + Files.walk(mainDirFile.toPath()) + .sorted(Comparator.reverseOrder()) + .map(Path::toFile) + .forEach(File::delete); + } catch (IOException e) { + e.printStackTrace(); + } + assertFalse(mainDirFile.exists()); + assertFalse(saveDirFile.exists()); + io = new FileIO(mainDir); + assertTrue(mainDirFile.exists()); + assertTrue(saveDirFile.exists()); + Files.walk(mainDirFile.toPath()) + .sorted(Comparator.reverseOrder()) + .map(Path::toFile) + .forEach(File::delete); + assertFalse(mainDirFile.exists()); + assertFalse(saveDirFile.exists()); + } + + @Nested + class Read{ + @BeforeEach + void init() { + mainDir = RESOURCES_DIR + "FileIORead"; + io = new FileIO(mainDir); + } + + @Test + void getList() { + List tournaments = io.getList(); + assertEquals("empty.txt", tournaments.get(0).getName()); + assertEquals("test1.txt", tournaments.get(1).getName()); + } + + @Test + void getListEmpty() { + mainDir = RESOURCES_DIR + "FileIOEmpty"; + io = new FileIO(mainDir); + assertEquals(0, io.getList().size()); + } + + @Test + void loadTournament() throws IOException, ClassNotFoundException { + mainDir = RESOURCES_DIR + "FileIORead"; + io = new FileIO(mainDir); + Tournament tournament = io.loadTournament(new File(mainDir + "\\saves\\test1.txt")); + assertEquals("test1", tournament.getName()); + } + + @Test + void loadTournamentNotExisting(){ + io = new FileIO(mainDir); + assertThrows(FileNotFoundException.class, () -> io.loadTournament(new File("Not-existing-File"))); + } + + @Test + void loadTournamentEmpty(){ + io = new FileIO(mainDir); + assertThrows(IOException.class, () -> io.loadTournament(new File(mainDir + "\\saves\\empty.txt"))); + } + + @Test + void loadTournamentFileNull(){ + io = new FileIO(mainDir); + assertThrows(IllegalArgumentException.class, () -> io.loadTournament(null)); + } + } + + @Nested + class Save{ + @BeforeEach + void setup(){ + mainDir = RESOURCES_DIR + "FileIOSave"; + io = new FileIO(mainDir); + } + + @Test + void saveTournament() { + Tournament tournament = new Tournament("test1"); + io.saveTournament(tournament); + File file = new File(mainDir + "\\saves\\test1.txt"); + if(file.exists()){ + file.delete(); + } else { + fail(); + } + } + + @Test + void saveTournamentNull(){ + assertThrows(IllegalArgumentException.class, () -> io.saveTournament(null)); + } + } +} \ No newline at end of file diff --git a/app/src/test/resources/ch/zhaw/projekt2/turnierverwaltung/FileIORead/saves/empty.txt b/app/src/test/resources/ch/zhaw/projekt2/turnierverwaltung/FileIORead/saves/empty.txt new file mode 100644 index 0000000..e69de29 From d641d2f2ea210d2a660cf1de72de79e3a53aa077 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Thu, 28 Apr 2022 19:43:42 +0200 Subject: [PATCH 08/25] created GUI --- .gitignore | 3 + .gradle/7.4/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .idea/.gitignore | 3 + .idea/compiler.xml | 2 +- .idea/cssdialects.xml | 6 + .idea/git_toolbox_prj.xml | 15 ++ .idea/gradle.xml | 1 + .idea/misc.xml | 5 +- .idea/uiDesigner.xml | 124 ++++++++++++++++ app/build.gradle | 8 + .../turnierverwaltung/main/MainWindow.fxml | 128 ++++++++++++++++ .../projekt2/turnierverwaltung/main/Style.css | 10 ++ .../tournamentList/tournamentList.fxml | 14 ++ .../compileJava/previous-compilation-data.bin | Bin 0 -> 20975 bytes .../zhaw/projekt2/turnierverwaltung/App.java | 9 +- .../turnierverwaltung/main/MainWindow.java | 39 +++++ .../main/MainWindowController.java | 69 +++++++++ .../participantFormularController.java | 97 ++++++++++++ .../tournamentListController.java | 4 + .../turnierverwaltung/main/MainWindow.fxml | 128 ++++++++++++++++ .../projekt2/turnierverwaltung/main/Style.css | 10 ++ .../participandFormular.fxml | 140 ++++++++++++++++++ .../tournamentList/tournamentList.fxml | 14 ++ 24 files changed, 822 insertions(+), 7 deletions(-) create mode 100644 .idea/cssdialects.xml create mode 100644 .idea/git_toolbox_prj.xml create mode 100644 .idea/uiDesigner.xml create mode 100644 app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml create mode 100644 app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/main/Style.css create mode 100644 app/build/resources/main/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml create mode 100644 app/build/tmp/compileJava/previous-compilation-data.bin create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindowController.java create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participantFormularController.java create mode 100644 app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentListController.java create mode 100644 app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.fxml create mode 100644 app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/main/Style.css create mode 100644 app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/participandAddFormular/participandFormular.fxml create mode 100644 app/src/main/resources/ch/zhaw/projekt2/turnierverwaltung/tournamentList/tournamentList.fxml 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 00ae1778f64ba036d6da625f725dd4fdb0a6096b..f90d1f6ef300d9003e5562ccdf55481c550c68a4 100644 GIT binary patch literal 17 VcmZRcx~p9LshesS0~j#Y0st_u1UUcz literal 17 TcmZRcx~p9LshesS0~7!NFfjwW diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 0041aacb126d4d3474eb13f10b41609569a1d8a5..46c3158f912dca0ffbe8f4cc82a675e5685ce001 100644 GIT binary patch literal 17 UcmZQBJ^h>gkcECJ0|cB005i}8vj6}9 literal 17 UcmZQBJ^h>gkcECJ0|YPv05bvu - + \ 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 @@ +