Changeset 10367 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
- Timestamp:
- 2016-06-12T23:40:12+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r10189 r10367 16 16 import javax.swing.AbstractAction; 17 17 import javax.swing.BorderFactory; 18 import javax.swing.JButton; 18 19 import javax.swing.JCheckBox; 19 20 import javax.swing.JLabel; … … 25 26 26 27 import org.openstreetmap.josm.data.oauth.OAuthToken; 27 import org.openstreetmap.josm.gui.SideButton;28 28 import org.openstreetmap.josm.gui.preferences.server.OAuthAccessTokenHolder; 29 29 import org.openstreetmap.josm.gui.widgets.DefaultTextComponentValidator; … … 147 147 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 148 148 TestAccessTokenAction actTestAccessToken = new TestAccessTokenAction(); 149 pnl.add(new SideButton(actTestAccessToken));149 pnl.add(new JButton(actTestAccessToken)); 150 150 this.addPropertyChangeListener(actTestAccessToken); 151 151 return pnl; … … 223 223 TestAccessTokenAction() { 224 224 putValue(NAME, tr("Test Access Token")); 225 putValue(SMALL_ICON,ImageProvider.get("oauth", "oauth-small"));225 new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this); 226 226 putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token")); 227 227 updateEnabledState();
Note:
See TracChangeset
for help on using the changeset viewer.
