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));
|
||||
panel.add(combo, "growx");
|
||||
|
||||
configuration.addChangeListener(new ChangeListener() {
|
||||
combo.addActionListener( new ActionListener() {
|
||||
@Override
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
updateFields();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//// Edit button
|
||||
|
Loading…
x
Reference in New Issue
Block a user