Changeset 10367 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.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/FullyAutomaticAuthorizationUI.java
r10183 r10367 19 19 import javax.swing.AbstractAction; 20 20 import javax.swing.BorderFactory; 21 import javax.swing.JButton; 21 22 import javax.swing.JLabel; 22 23 import javax.swing.JOptionPane; … … 33 34 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 34 35 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 35 import org.openstreetmap.josm.gui.SideButton;36 36 import org.openstreetmap.josm.gui.help.HelpUtil; 37 37 import org.openstreetmap.josm.gui.preferences.server.UserNameValidator; … … 201 201 tfPassword.getDocument().addDocumentListener(runAuthorisationAction); 202 202 tfUserName.getDocument().addDocumentListener(runAuthorisationAction); 203 pnl.add(new SideButton(runAuthorisationAction));203 pnl.add(new JButton(runAuthorisationAction)); 204 204 return pnl; 205 205 } … … 236 236 // the actions 237 237 JPanel pnl1 = new JPanel(new FlowLayout(FlowLayout.LEFT)); 238 pnl1.add(new SideButton(new BackAction()));239 pnl1.add(new SideButton(new TestAccessTokenAction()));238 pnl1.add(new JButton(new BackAction())); 239 pnl1.add(new JButton(new TestAccessTokenAction())); 240 240 gc.gridy = 2; 241 241 pnl.add(pnl1, gc); … … 325 325 RunAuthorisationAction() { 326 326 putValue(NAME, tr("Authorize now")); 327 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));327 new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this); 328 328 putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authorization form on the JOSM web site")); 329 329 updateEnabledState(); … … 362 362 putValue(NAME, tr("Back")); 363 363 putValue(SHORT_DESCRIPTION, tr("Run the automatic authorization steps again")); 364 putValue(SMALL_ICON, ImageProvider.get("dialogs", "previous"));364 new ImageProvider("dialogs", "previous").getResource().getImageIcon(this); 365 365 } 366 366 … … 377 377 TestAccessTokenAction() { 378 378 putValue(NAME, tr("Test Access Token")); 379 putValue(SMALL_ICON, ImageProvider.get("logo"));379 new ImageProvider("logo").getResource().getImageIcon(this); 380 380 } 381 381
Note:
See TracChangeset
for help on using the changeset viewer.