Changeset 10355 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-06-11T23:42:19+02:00 (8 years ago)
Author:
stoecker
Message:

don't use SideButton outside side panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

    r10179 r10355  
    2121import javax.swing.JCheckBox;
    2222import javax.swing.JComponent;
     23import javax.swing.JButton;
    2324import javax.swing.JDialog;
    2425import javax.swing.JPanel;
     
    2627
    2728import org.openstreetmap.josm.actions.ExpertToggleAction;
    28 import org.openstreetmap.josm.gui.SideButton;
    2929import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    3030import org.openstreetmap.josm.gui.help.HelpUtil;
     
    6767        JPanel btns = new JPanel(new FlowLayout(FlowLayout.CENTER));
    6868        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"))));
    7272        pnl.add(expert, GBC.std().insets(5, 0, 0, 0));
    7373        pnl.add(btns, GBC.std().fill(GBC.HORIZONTAL));
     
    157157        CancelAction() {
    158158            putValue(NAME, tr("Cancel"));
    159             putValue(SMALL_ICON, ImageProvider.get("cancel"));
     159            new ImageProvider("cancel").getResource().getImageIcon(this);
    160160            putValue(SHORT_DESCRIPTION, tr("Close the preferences dialog and discard preference updates"));
    161161        }
     
    176176        OKAction() {
    177177            putValue(NAME, tr("OK"));
    178             putValue(SMALL_ICON, ImageProvider.get("ok"));
     178            new ImageProvider("ok").getResource().getImageIcon(this);
    179179            putValue(SHORT_DESCRIPTION, tr("Save the preferences and close the dialog"));
    180180        }
Note: See TracChangeset for help on using the changeset viewer.