Small UI Fix To Update ComboBox To Display Selection (#1367)

This commit is contained in:
Remington Holder 2022-05-29 13:51:10 -04:00 committed by GitHub
parent 92e4d8ea4c
commit 70f3d0fa12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ public class SimulationPreferencesPanel extends PreferencesPanel {
GeodeticComputationStrategy gcs = (GeodeticComputationStrategy) gcsCombo
.getSelectedItem();
gcsCombo.setToolTipText(gcs.getDescription());
gcsCombo.repaint(); // On some machines, the combobox did not visually update to the selected item
}
};
gcsCombo.addActionListener(gcsTTipListener);