- Timestamp:
- 2012-02-14T21:12:56+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/LanguagePreference.java
r3293 r4931 37 37 public void addGui(final PreferenceTabbedPane gui) { 38 38 model = new LanguageComboBoxModel(); 39 // Selecting the language BEFORE the JComboBox listens to model changes speed up initialization by ~35ms (see #7386) 40 // See http://stackoverflow.com/questions/3194958/fast-replacement-for-jcombobox-basiccomboboxui 41 model.selectLanguage(Main.pref.get("language")); 39 42 langCombo = new JComboBox(model); 40 43 langCombo.setRenderer(new LanguageCellRenderer(langCombo.getRenderer())); 41 model.selectLanguage(Main.pref.get("language"));42 44 43 45 LafPreference lafPreference = gui.getSetting(LafPreference.class);
Note:
See TracChangeset
for help on using the changeset viewer.