minor changes

This commit is contained in:
potzplitz 2024-03-08 22:42:54 +01:00
parent cc21e69084
commit d5cc42a29f
3 changed files with 13 additions and 5 deletions

View file

@ -71,9 +71,7 @@ public class GuiData {
String jsonstring;
localLength = filelengthindex.length;
System.out.println(filelengthindex.length);
for(int i = 0; i < filelengthindex.length; i++) {
jsonstring = FileUtils.readFileToString(new File("C:\\ExtremeDemonList\\levels\\" + data.allLevels().get(i) + ".json"), StandardCharsets.UTF_8);

View file

@ -67,6 +67,8 @@ public class MainGUI {
public JComboBox show = new JComboBox(showing);
private FetchData fetch = new FetchData();
private Elements elements = new Elements();
private int completedcount = 0;
public void build() throws IOException {
GuiData data = new GuiData();
@ -82,7 +84,7 @@ public class MainGUI {
level.setBounds(10, 10, 200, 30);
level.setFont(level.getFont().deriveFont(15f));
filtercompleted.setBounds(720, 15, 200, 30);
filtercompleted.setBounds(710, 15, 200, 30);
progress.setBounds(200, 300, 500, 30);
progress.setStringPainted(true);
@ -191,6 +193,7 @@ public class MainGUI {
contents.setBackground(Color.decode("#cbffbf"));
uncompleted.setVisible(true);
completed.setVisible(false);
completedcount++;
}
contents.addMouseListener(new MouseListener() {
@ -212,6 +215,7 @@ public class MainGUI {
qualify.setText("Qualifikation: " + data.getQualification().get(index) + "%");
level.setVerticalAlignment(SwingConstants.CENTER);
FetchData fetchData = new FetchData();
try {
@ -235,7 +239,6 @@ public class MainGUI {
recordspanel.setLayout(new GridLayout(victors.size(), 1));
for(String victor : victors) {
System.out.println(victor);
JPanel contents = new JPanel();
contents.setPreferredSize(new Dimension(165, 50));
contents.setLayout(null);
@ -284,6 +287,8 @@ public class MainGUI {
rank.setBounds(10, 10, 40, 30);
rank.setName(i + "");
filtercompleted.setText("nach Geschafft filtern (" + completedcount + ")");
show.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {

5
src/gui/SettingsGui.java Normal file
View file

@ -0,0 +1,5 @@
package gui;
public class SettingsGui {
}