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:
kruland2607 2012-10-25 20:46:50 -05:00
parent dbf8fa77d1
commit e73211e2cf

View File

@ -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