Ignore:
Timestamp:
2016-06-12T23:40:12+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/oauth/OAuthAuthorizationWizard.java

    r10254 r10367  
    2626import javax.swing.AbstractAction;
    2727import javax.swing.BorderFactory;
     28import javax.swing.JButton;
    2829import javax.swing.JComponent;
    2930import javax.swing.JDialog;
     
    4243import org.openstreetmap.josm.data.oauth.OAuthParameters;
    4344import org.openstreetmap.josm.data.oauth.OAuthToken;
    44 import org.openstreetmap.josm.gui.SideButton;
    4545import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    4646import org.openstreetmap.josm.gui.help.HelpUtil;
     
    9999        pnlManualAuthorisationUI.addPropertyChangeListener(actAcceptAccessToken);
    100100
    101         pnl.add(new SideButton(actAcceptAccessToken));
    102         pnl.add(new SideButton(new CancelAction()));
    103         pnl.add(new SideButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Dialog/OAuthAuthorisationWizard"))));
     101        pnl.add(new JButton(actAcceptAccessToken));
     102        pnl.add(new JButton(new CancelAction()));
     103        pnl.add(new JButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Dialog/OAuthAuthorisationWizard"))));
    104104
    105105        return pnl;
     
    351351        CancelAction() {
    352352            putValue(NAME, tr("Cancel"));
    353             putValue(SMALL_ICON, ImageProvider.get("cancel"));
     353            new ImageProvider("cancel").getResource().getImageIcon(this);
    354354            putValue(SHORT_DESCRIPTION, tr("Close the dialog and cancel authorization"));
    355355        }
     
    373373        AcceptAccessTokenAction() {
    374374            putValue(NAME, tr("Accept Access Token"));
    375             putValue(SMALL_ICON, ImageProvider.get("ok"));
     375            new ImageProvider("ok").getResource().getImageIcon(this);
    376376            putValue(SHORT_DESCRIPTION, tr("Close the dialog and accept the Access Token"));
    377377            updateEnabledState(null);
Note: See TracChangeset for help on using the changeset viewer.