diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..81b14a4 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/bin/data/DownloadLevels.class b/bin/data/DownloadLevels.class index 11e69df..fdf6771 100644 Binary files a/bin/data/DownloadLevels.class and b/bin/data/DownloadLevels.class differ diff --git a/bin/data/ManageFiles.class b/bin/data/ManageFiles.class index 161a997..f3532d1 100644 Binary files a/bin/data/ManageFiles.class and b/bin/data/ManageFiles.class differ diff --git a/bin/filestructure/CreateFileStructure.class b/bin/filestructure/CreateFileStructure.class index d45e39d..7b039a7 100644 Binary files a/bin/filestructure/CreateFileStructure.class and b/bin/filestructure/CreateFileStructure.class differ diff --git a/src/data/DownloadLevels.java b/src/data/DownloadLevels.java index 7021908..63011c1 100644 --- a/src/data/DownloadLevels.java +++ b/src/data/DownloadLevels.java @@ -12,6 +12,8 @@ import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.JTextArea; +import gui.MainGUI; + public class DownloadLevels { private ManageFiles data = new ManageFiles(); @@ -81,7 +83,6 @@ public class DownloadLevels { } } catch (IOException e) { - // Handle exceptions e.printStackTrace(); } area.append(" >> ERFOLGREICH \n"); @@ -89,7 +90,8 @@ public class DownloadLevels { JOptionPane.showMessageDialog(null, "Alle " + data.missingLevels().size() + " Level wurden erfolgreich heruntergeladen.", "Download abgeschlossen", JOptionPane.INFORMATION_MESSAGE); main.dispose(); - System.out.println("main gui starten IN DOWNLOADLEVELS NICHT VERGESSEN HIER EINFÜGEN"); + MainGUI gui = new MainGUI(); + gui.build(); } diff --git a/src/data/FetchData.java b/src/data/FetchData.java index 0be79dc..dd91bb1 100644 --- a/src/data/FetchData.java +++ b/src/data/FetchData.java @@ -30,7 +30,7 @@ public class FetchData { } } } - } + } public ArrayList allLevels() { return levels; diff --git a/src/data/ManageFiles.java b/src/data/ManageFiles.java index 16ec12e..0d42f4b 100644 --- a/src/data/ManageFiles.java +++ b/src/data/ManageFiles.java @@ -4,6 +4,7 @@ import java.io.File; import java.io.IOException; import java.util.ArrayList; +import gui.MainGUI; import gui.MissingLevels; public class ManageFiles { @@ -36,6 +37,9 @@ public class ManageFiles { if(missing > 0) { gui.show(missinglevels, missing); + } else { + MainGUI gui = new MainGUI(); + gui.build(); } } diff --git a/src/filestructure/CreateFileStructure.java b/src/filestructure/CreateFileStructure.java index 32554dd..515d91d 100644 --- a/src/filestructure/CreateFileStructure.java +++ b/src/filestructure/CreateFileStructure.java @@ -9,7 +9,8 @@ public class CreateFileStructure { File file = new File("C:\\ExtremeDemonList\\levels"); if(!file.isDirectory()) { - file.mkdir(); + System.out.println("nein"); + file.mkdirs(); } } diff --git a/src/firstlaunch/FirstlaunchMain.java b/src/firstlaunch/FirstlaunchMain.java new file mode 100644 index 0000000..973d307 --- /dev/null +++ b/src/firstlaunch/FirstlaunchMain.java @@ -0,0 +1,9 @@ +package firstlaunch; + +public class FirstlaunchMain { + + public void main() { + + } + +} diff --git a/src/gui/MainGUI.java b/src/gui/MainGUI.java new file mode 100644 index 0000000..1716f08 --- /dev/null +++ b/src/gui/MainGUI.java @@ -0,0 +1,20 @@ +package gui; + +import javax.swing.JFrame; + +public class MainGUI { + + public void build() { + JFrame main = new JFrame(); + main.setSize(900, 700); + main.setLayout(null); + main.setResizable(false); + main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + + + + main.setVisible(true); + } + +} diff --git a/src/gui/MissingLevels.java b/src/gui/MissingLevels.java index fa512b0..77abae9 100644 --- a/src/gui/MissingLevels.java +++ b/src/gui/MissingLevels.java @@ -72,8 +72,9 @@ public class MissingLevels { no.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - // haupt gui aufrufen - + main.dispose(); + MainGUI gui = new MainGUI(); + gui.build(); } });