Changeset 10367 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
- Timestamp:
- 2016-06-12T23:40:12+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r10254 r10367 26 26 import javax.swing.AbstractAction; 27 27 import javax.swing.BorderFactory; 28 import javax.swing.JButton; 28 29 import javax.swing.JComponent; 29 30 import javax.swing.JDialog; … … 42 43 import org.openstreetmap.josm.data.oauth.OAuthParameters; 43 44 import org.openstreetmap.josm.data.oauth.OAuthToken; 44 import org.openstreetmap.josm.gui.SideButton;45 45 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 46 46 import org.openstreetmap.josm.gui.help.HelpUtil; … … 99 99 pnlManualAuthorisationUI.addPropertyChangeListener(actAcceptAccessToken); 100 100 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")))); 104 104 105 105 return pnl; … … 351 351 CancelAction() { 352 352 putValue(NAME, tr("Cancel")); 353 putValue(SMALL_ICON, ImageProvider.get("cancel"));353 new ImageProvider("cancel").getResource().getImageIcon(this); 354 354 putValue(SHORT_DESCRIPTION, tr("Close the dialog and cancel authorization")); 355 355 } … … 373 373 AcceptAccessTokenAction() { 374 374 putValue(NAME, tr("Accept Access Token")); 375 putValue(SMALL_ICON, ImageProvider.get("ok"));375 new ImageProvider("ok").getResource().getImageIcon(this); 376 376 putValue(SHORT_DESCRIPTION, tr("Close the dialog and accept the Access Token")); 377 377 updateEnabledState(null);
Note:
See TracChangeset
for help on using the changeset viewer.