Changeset 7015 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
- Timestamp:
- 2014-04-27T17:34:22+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r7005 r7015 97 97 private JCheckBox cbDefault = new JCheckBox(); 98 98 private JCheckBox cbDisable = new JCheckBox(); 99 private JosmComboBox tfKey = new JosmComboBox(); 99 private JosmComboBox<String> tfKey = new JosmComboBox<>(); 100 100 101 101 JTable shortcutTable = new JTable(); … … 218 218 cbAlt.setText(ALT); // see above for why no tr() 219 219 tfKey.setAction(action); 220 tfKey.setModel(new DefaultComboBoxModel(keyList.values().toArray())); 220 tfKey.setModel(new DefaultComboBoxModel<>(keyList.values().toArray(new String[0]))); 221 221 cbMeta.setAction(action); 222 222 cbMeta.setText(META); // see above for why no tr()
Note:
See TracChangeset
for help on using the changeset viewer.