update
This commit is contained in:
parent
5172a617f1
commit
e20681b9fc
2 changed files with 23 additions and 11 deletions
|
@ -55,7 +55,7 @@ public class MainGUI {
|
||||||
public JScrollPane records = new JScrollPane(recordspanel);
|
public JScrollPane records = new JScrollPane(recordspanel);
|
||||||
public JCheckBox filtercompleted = new JCheckBox("Nach geschaft filtern");
|
public JCheckBox filtercompleted = new JCheckBox("Nach geschaft filtern");
|
||||||
public Button copyid = new Button("Level ID kopieren");
|
public Button copyid = new Button("Level ID kopieren");
|
||||||
|
GridLayout gridLayout = new GridLayout(3, 1);
|
||||||
private String[] showing = {"Alle anzeigen", "Top 3", "Top 50", "Top 150", "Top 200"};
|
private String[] showing = {"Alle anzeigen", "Top 3", "Top 50", "Top 150", "Top 200"};
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public JComboBox show = new JComboBox(showing);
|
public JComboBox show = new JComboBox(showing);
|
||||||
|
@ -71,6 +71,8 @@ public class MainGUI {
|
||||||
data.IndexVerifiers();
|
data.IndexVerifiers();
|
||||||
data.IndexCreators();
|
data.IndexCreators();
|
||||||
|
|
||||||
|
gridLayout.setRows(data.getLocalLevels().size());
|
||||||
|
|
||||||
main.setSize(900, 700);
|
main.setSize(900, 700);
|
||||||
main.setLayout(null);
|
main.setLayout(null);
|
||||||
main.setResizable(false);
|
main.setResizable(false);
|
||||||
|
@ -91,7 +93,8 @@ public class MainGUI {
|
||||||
|
|
||||||
levelpanel.setBackground(Color.LIGHT_GRAY);
|
levelpanel.setBackground(Color.LIGHT_GRAY);
|
||||||
levelpanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
|
levelpanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
|
||||||
levelpanel.setLayout(new GridLayout(data.getLocalLevels().size(), 1));
|
levelpanel.setLayout(gridLayout);
|
||||||
|
|
||||||
|
|
||||||
recordspanel.setBackground(Color.LIGHT_GRAY);
|
recordspanel.setBackground(Color.LIGHT_GRAY);
|
||||||
recordspanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
|
recordspanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
|
||||||
|
@ -129,10 +132,6 @@ public class MainGUI {
|
||||||
|
|
||||||
currentLevel.setText(data.getLocalLevels().get(i));
|
currentLevel.setText(data.getLocalLevels().get(i));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
JPanel contents = new JPanel();
|
JPanel contents = new JPanel();
|
||||||
contents.setName(data.getLocalLevels().get(i));
|
contents.setName(data.getLocalLevels().get(i));
|
||||||
contents.setPreferredSize(new Dimension(600, 50));
|
contents.setPreferredSize(new Dimension(600, 50));
|
||||||
|
@ -242,6 +241,7 @@ public class MainGUI {
|
||||||
if(show.getSelectedIndex() == 1) {
|
if(show.getSelectedIndex() == 1) {
|
||||||
if(!(Integer.parseInt(rank.getName()) >= 0 && Integer.parseInt(rank.getName()) <= 2)) {
|
if(!(Integer.parseInt(rank.getName()) >= 0 && Integer.parseInt(rank.getName()) <= 2)) {
|
||||||
levelpanel.remove(contents);
|
levelpanel.remove(contents);
|
||||||
|
|
||||||
levelpanel.repaint();
|
levelpanel.repaint();
|
||||||
levelpanel.revalidate();
|
levelpanel.revalidate();
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,11 @@ public class MainGUI {
|
||||||
levelpanel.revalidate();
|
levelpanel.revalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gridLayout.setRows(levelpanel.getComponentCount());
|
||||||
|
gridLayout.setColumns(1);
|
||||||
|
levelpanel.revalidate();
|
||||||
|
scroll.repaint();
|
||||||
|
scroll.revalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -291,6 +295,11 @@ public class MainGUI {
|
||||||
levelpanel.repaint();
|
levelpanel.repaint();
|
||||||
levelpanel.revalidate();
|
levelpanel.revalidate();
|
||||||
}
|
}
|
||||||
|
gridLayout.setRows(levelpanel.getComponentCount());
|
||||||
|
gridLayout.setColumns(1);
|
||||||
|
levelpanel.revalidate();
|
||||||
|
scroll.repaint();
|
||||||
|
scroll.revalidate();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void keyPressed(KeyEvent e) {
|
public void keyPressed(KeyEvent e) {
|
||||||
|
@ -307,6 +316,9 @@ public class MainGUI {
|
||||||
if (e.getStateChange() == ItemEvent.SELECTED) {
|
if (e.getStateChange() == ItemEvent.SELECTED) {
|
||||||
if (!contents.getBackground().equals(Color.decode("#cbffbf"))) {
|
if (!contents.getBackground().equals(Color.decode("#cbffbf"))) {
|
||||||
levelpanel.remove(contents);
|
levelpanel.remove(contents);
|
||||||
|
gridLayout.setRows(data.getCompleted().size());
|
||||||
|
scroll.repaint();
|
||||||
|
scroll.revalidate();
|
||||||
}
|
}
|
||||||
} else if (e.getStateChange() == ItemEvent.DESELECTED) {
|
} else if (e.getStateChange() == ItemEvent.DESELECTED) {
|
||||||
levelpanel.add(contents, 0); // Füge das Element am Anfang hinzu
|
levelpanel.add(contents, 0); // Füge das Element am Anfang hinzu
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
1.3
|
1.4
|
||||||
https://github.com/potzplitz/ExtremeDemonList/releases/download/sdfdf/List.jar
|
https://github.com/potzplitz/ExtremeDemonList/releases/download/List1.4/List.jar
|
Loading…
Reference in a new issue