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));
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