parent
e493d46626
commit
4c6605c037
2 changed files with 0 additions and 45 deletions
|
@ -1,22 +1,5 @@
|
|||
package gui;
|
||||
|
||||
import java.awt.Button;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
import settingsfunctions.DeleteDatabase;
|
||||
|
||||
public class SettingsGui {
|
||||
|
||||
public void showSettings() {
|
||||
JFrame settings = new JFrame("Einstellungen");
|
||||
settings.setLayout(null);
|
||||
settings.setResizable(false);
|
||||
settings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
||||
settings.setSize(500, 500);
|
||||
settings.setVisible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
package settingsfunctions;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class DeleteDatabase {
|
||||
|
||||
private void deleter(String database) {
|
||||
File filelength = new File("C:\\ExtremeDemonList\\" + database);
|
||||
File[] filelengthindex = filelength.listFiles();
|
||||
for(File file : filelengthindex) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
|
||||
public void deleteCompleted() {
|
||||
deleter("completed");
|
||||
}
|
||||
|
||||
public void deleteUncompleted() {
|
||||
deleter("levels");
|
||||
}
|
||||
|
||||
public void deleteAll() {
|
||||
deleteCompleted();
|
||||
deleteUncompleted();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue