Changeset 5429 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/display
- Timestamp:
- 2012-08-11T23:03:55+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r4968 r5429 13 13 import javax.swing.ButtonGroup; 14 14 import javax.swing.JCheckBox; 15 import javax.swing.JComboBox;16 15 import javax.swing.JLabel; 17 16 import javax.swing.JOptionPane; … … 27 26 import org.openstreetmap.josm.gui.layer.markerlayer.Marker.TemplateEntryProperty; 28 27 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.ValidationListener; 28 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 29 29 import org.openstreetmap.josm.tools.GBC; 30 30 import org.openstreetmap.josm.tools.template_engine.ParseError; … … 58 58 private JRadioButton colorTypeNone = new JRadioButton(tr("Single Color (can be customized for named layers)")); 59 59 private JRadioButton colorTypeGlobal = new JRadioButton(tr("Use global settings")); 60 private J ComboBox colorTypeVelocityTune = new JComboBox(new String[] {tr("Car"), tr("Bicycle"), tr("Foot")});60 private JosmComboBox colorTypeVelocityTune = new JosmComboBox(new String[] {tr("Car"), tr("Bicycle"), tr("Foot")}); 61 61 private JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX")); 62 62 private JCheckBox drawGpsArrows = new JCheckBox(tr("Draw Direction Arrows")); … … 64 64 private JTextField drawGpsArrowsMinDist = new JTextField(8); 65 65 private JCheckBox colorDynamic = new JCheckBox(tr("Dynamic color range based on data limits")); 66 private J ComboBox waypointLabel = new JComboBox(LABEL_PATTERN_DESC);66 private JosmComboBox waypointLabel = new JosmComboBox(LABEL_PATTERN_DESC); 67 67 private JTextField waypointLabelPattern = new JTextField(); 68 private J ComboBox audioWaypointLabel = new JComboBox(LABEL_PATTERN_DESC);68 private JosmComboBox audioWaypointLabel = new JosmComboBox(LABEL_PATTERN_DESC); 69 69 private JTextField audioWaypointLabelPattern = new JTextField(); 70 70 … … 414 414 } 415 415 416 private void updateWaypointLabelCombobox(J ComboBox cb, JTextField tf, TemplateEntryProperty property) {416 private void updateWaypointLabelCombobox(JosmComboBox cb, JTextField tf, TemplateEntryProperty property) { 417 417 String labelPattern = property.getAsString(); 418 418 boolean found = false; … … 431 431 } 432 432 433 private void updateWaypointPattern(J ComboBox cb, JTextField tf) {433 private void updateWaypointPattern(JosmComboBox cb, JTextField tf) { 434 434 if (cb.getSelectedIndex() == WAYPOINT_LABEL_CUSTOM) { 435 435 tf.setEnabled(true); -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r4968 r5429 11 11 import javax.swing.DefaultListCellRenderer; 12 12 import javax.swing.JCheckBox; 13 import javax.swing.JComboBox;14 13 import javax.swing.JLabel; 15 14 import javax.swing.JList; … … 27 26 import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting; 28 27 import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting; 28 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 29 29 import org.openstreetmap.josm.tools.GBC; 30 30 … … 40 40 * ComboBox with all look and feels. 41 41 */ 42 private J ComboBox lafCombo;42 private JosmComboBox lafCombo; 43 43 public JPanel panel; 44 44 private JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup")); … … 49 49 50 50 public void addGui(PreferenceTabbedPane gui) { 51 lafCombo = new J ComboBox(UIManager.getInstalledLookAndFeels());51 lafCombo = new JosmComboBox(UIManager.getInstalledLookAndFeels()); 52 52 53 53 // let's try to load additional LookAndFeels and put them into the list -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java
r4968 r5429 13 13 import javax.swing.DefaultComboBoxModel; 14 14 import javax.swing.DefaultListCellRenderer; 15 import javax.swing.JComboBox;16 15 import javax.swing.JLabel; 17 16 import javax.swing.JList; … … 25 24 import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting; 26 25 import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting; 26 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 27 27 import org.openstreetmap.josm.tools.GBC; 28 28 import org.openstreetmap.josm.tools.I18n; … … 36 36 37 37 /** the combo box with the available locales */ 38 private J ComboBox langCombo;38 private JosmComboBox langCombo; 39 39 /** the model for the combo box */ 40 40 private LanguageComboBoxModel model; … … 45 45 // See http://stackoverflow.com/questions/3194958/fast-replacement-for-jcombobox-basiccomboboxui 46 46 model.selectLanguage(Main.pref.get("language")); 47 langCombo = new J ComboBox(model);47 langCombo = new JosmComboBox(model); 48 48 langCombo.setRenderer(new LanguageCellRenderer(langCombo.getRenderer())); 49 49
Note:
See TracChangeset
for help on using the changeset viewer.