genau
This commit is contained in:
parent
2a96b72a24
commit
fe35c8922a
14 changed files with 70 additions and 6 deletions
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
|
@ -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
|
7
.idea/discord.xml
Normal file
7
.idea/discord.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="ASK" />
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
</project>
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/classes" />
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public class FetchData {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ArrayList<String> allLevels() {
|
||||
return levels;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
9
src/firstlaunch/FirstlaunchMain.java
Normal file
9
src/firstlaunch/FirstlaunchMain.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package firstlaunch;
|
||||
|
||||
public class FirstlaunchMain {
|
||||
|
||||
public void main() {
|
||||
|
||||
}
|
||||
|
||||
}
|
20
src/gui/MainGUI.java
Normal file
20
src/gui/MainGUI.java
Normal file
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue