Changeset 10355 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-06-11T23:42:19+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r10179 r10355 21 21 import javax.swing.JCheckBox; 22 22 import javax.swing.JComponent; 23 import javax.swing.JButton; 23 24 import javax.swing.JDialog; 24 25 import javax.swing.JPanel; … … 26 27 27 28 import org.openstreetmap.josm.actions.ExpertToggleAction; 28 import org.openstreetmap.josm.gui.SideButton;29 29 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 30 30 import org.openstreetmap.josm.gui.help.HelpUtil; … … 67 67 JPanel btns = new JPanel(new FlowLayout(FlowLayout.CENTER)); 68 68 btns.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 69 btns.add(new SideButton(new OKAction()));70 btns.add(new SideButton(new CancelAction()));71 btns.add(new SideButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Action/Preferences"))));69 btns.add(new JButton(new OKAction())); 70 btns.add(new JButton(new CancelAction())); 71 btns.add(new JButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Action/Preferences")))); 72 72 pnl.add(expert, GBC.std().insets(5, 0, 0, 0)); 73 73 pnl.add(btns, GBC.std().fill(GBC.HORIZONTAL)); … … 157 157 CancelAction() { 158 158 putValue(NAME, tr("Cancel")); 159 putValue(SMALL_ICON, ImageProvider.get("cancel"));159 new ImageProvider("cancel").getResource().getImageIcon(this); 160 160 putValue(SHORT_DESCRIPTION, tr("Close the preferences dialog and discard preference updates")); 161 161 } … … 176 176 OKAction() { 177 177 putValue(NAME, tr("OK")); 178 putValue(SMALL_ICON, ImageProvider.get("ok"));178 new ImageProvider("ok").getResource().getImageIcon(this); 179 179 putValue(SHORT_DESCRIPTION, tr("Save the preferences and close the dialog")); 180 180 }
Note:
See TracChangeset
for help on using the changeset viewer.