[Bugfix] Main Window Config chooser now updates for new Configurations
-
This commit is contained in:
parent
915d401370
commit
a94e14c2a6
@ -10,7 +10,7 @@ import javax.swing.event.ListDataListener;
|
||||
|
||||
import java.util.EventObject;
|
||||
|
||||
public class ConfigurationModel implements ComboBoxModel<FlightConfiguration>, StateChangeListener {
|
||||
public class ConfigurationModel implements MutableComboBoxModel<FlightConfiguration>, StateChangeListener {
|
||||
|
||||
private final Rocket rkt;
|
||||
private final JComboBox<FlightConfiguration> combo;
|
||||
@ -66,5 +66,21 @@ public class ConfigurationModel implements ComboBoxModel<FlightConfiguration>, S
|
||||
// ignore any listen requests here...
|
||||
}
|
||||
|
||||
// ====== MutableComboBoxModel Functions ======
|
||||
// these functions don't need to do anything, just being a 'mutable' version of the combo box
|
||||
// is enough to allow updating the UI
|
||||
|
||||
@Override
|
||||
public void addElement(FlightConfiguration arg0) {}
|
||||
|
||||
@Override
|
||||
public void insertElementAt(FlightConfiguration arg0, int arg1) {}
|
||||
|
||||
@Override
|
||||
public void removeElement(Object arg0) {}
|
||||
|
||||
@Override
|
||||
public void removeElementAt(int arg0) {}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user