Ignore:
Timestamp:
2016-06-12T23:40:12+02:00 (10 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/ManualAuthorizationUI.java

    r10189 r10367  
    1616import javax.swing.AbstractAction;
    1717import javax.swing.BorderFactory;
     18import javax.swing.JButton;
    1819import javax.swing.JCheckBox;
    1920import javax.swing.JLabel;
     
    2526
    2627import org.openstreetmap.josm.data.oauth.OAuthToken;
    27 import org.openstreetmap.josm.gui.SideButton;
    2828import org.openstreetmap.josm.gui.preferences.server.OAuthAccessTokenHolder;
    2929import org.openstreetmap.josm.gui.widgets.DefaultTextComponentValidator;
     
    147147        JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT));
    148148        TestAccessTokenAction actTestAccessToken = new TestAccessTokenAction();
    149         pnl.add(new SideButton(actTestAccessToken));
     149        pnl.add(new JButton(actTestAccessToken));
    150150        this.addPropertyChangeListener(actTestAccessToken);
    151151        return pnl;
     
    223223        TestAccessTokenAction() {
    224224            putValue(NAME, tr("Test Access Token"));
    225             putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));
     225            new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
    226226            putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token"));
    227227            updateEnabledState();
Note: See TracChangeset for help on using the changeset viewer.