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/FullyAutomaticAuthorizationUI.java

    r10183 r10367  
    1919import javax.swing.AbstractAction;
    2020import javax.swing.BorderFactory;
     21import javax.swing.JButton;
    2122import javax.swing.JLabel;
    2223import javax.swing.JOptionPane;
     
    3334import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    3435import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    35 import org.openstreetmap.josm.gui.SideButton;
    3636import org.openstreetmap.josm.gui.help.HelpUtil;
    3737import org.openstreetmap.josm.gui.preferences.server.UserNameValidator;
     
    201201        tfPassword.getDocument().addDocumentListener(runAuthorisationAction);
    202202        tfUserName.getDocument().addDocumentListener(runAuthorisationAction);
    203         pnl.add(new SideButton(runAuthorisationAction));
     203        pnl.add(new JButton(runAuthorisationAction));
    204204        return pnl;
    205205    }
     
    236236        // the actions
    237237        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()));
    240240        gc.gridy = 2;
    241241        pnl.add(pnl1, gc);
     
    325325        RunAuthorisationAction() {
    326326            putValue(NAME, tr("Authorize now"));
    327             putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));
     327            new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
    328328            putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authorization form on the JOSM web site"));
    329329            updateEnabledState();
     
    362362            putValue(NAME, tr("Back"));
    363363            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);
    365365        }
    366366
     
    377377        TestAccessTokenAction() {
    378378            putValue(NAME, tr("Test Access Token"));
    379             putValue(SMALL_ICON, ImageProvider.get("logo"));
     379            new ImageProvider("logo").getResource().getImageIcon(this);
    380380        }
    381381
Note: See TracChangeset for help on using the changeset viewer.