Fixed but motor selected label was not changing when the combo box value
changed. I don't know when this was introduced.
This commit is contained in:
parent
dbf8fa77d1
commit
e73211e2cf
@ -75,12 +75,12 @@ public class MotorConfig extends JPanel {
|
|||||||
|
|
||||||
JComboBox combo = new JComboBox(new FlightConfigurationModel(configuration));
|
JComboBox combo = new JComboBox(new FlightConfigurationModel(configuration));
|
||||||
panel.add(combo, "growx");
|
panel.add(combo, "growx");
|
||||||
|
combo.addActionListener( new ActionListener() {
|
||||||
configuration.addChangeListener(new ChangeListener() {
|
|
||||||
@Override
|
@Override
|
||||||
public void stateChanged(ChangeEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
updateFields();
|
updateFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//// Edit button
|
//// Edit button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user