|
@@ -1399,6 +1399,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
fileChooser.setAcceptAllFileFilterUsed(false);
|
|
|
|
|
|
if (fileChooser.showOpenDialog(test) == JFileChooser.APPROVE_OPTION) {
|
|
|
+ comboBoxAlgo.removeAllItems();
|
|
|
File[] files = fileChooser.getSelectedFile().listFiles();
|
|
|
for (int i = 0; i < files.length; i++) {
|
|
|
if (files[i].toString().endsWith(".java") || files[i].toString().endsWith(".class")) {
|
|
@@ -1461,6 +1462,10 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
mnSimulationSpeed.add(btnApply);
|
|
|
menuBar.add(comboBoxAlgo);
|
|
|
+
|
|
|
+ Dimension height = comboBoxAlgo.getPreferredSize();
|
|
|
+ comboBoxAlgo.setPreferredSize(new Dimension(200, (int) height.getHeight()));
|
|
|
+ comboBoxAlgo.setMaximumSize(comboBoxAlgo.getPreferredSize());
|
|
|
}
|
|
|
|
|
|
/*
|