Changeset 10525 in josm for trunk/src


Ignore:
Timestamp:
2016-07-10T14:56:47+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #12994 - Old style SideButton usage errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r10105 r10525  
    4949import org.openstreetmap.josm.gui.ExtendedDialog;
    5050import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    51 import org.openstreetmap.josm.gui.SideButton;
    5251import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    5352import org.openstreetmap.josm.gui.help.HelpUtil;
     
    180179
    181180        // -- upload button
    182         btnUpload = new SideButton(new UploadAction(this));
     181        btnUpload = new JButton(new UploadAction(this));
    183182        pnl.add(btnUpload);
    184183        btnUpload.setFocusable(true);
     
    187186        // -- cancel button
    188187        CancelAction cancelAction = new CancelAction(this);
    189         pnl.add(new SideButton(cancelAction));
     188        pnl.add(new JButton(cancelAction));
    190189        getRootPane().registerKeyboardAction(
    191190                cancelAction,
     
    193192                JComponent.WHEN_IN_FOCUSED_WINDOW
    194193        );
    195         pnl.add(new SideButton(new ContextSensitiveHelpAction(ht("/Dialog/Upload"))));
     194        pnl.add(new JButton(new ContextSensitiveHelpAction(ht("/Dialog/Upload"))));
    196195        HelpUtil.setHelpContext(getRootPane(), ht("/Dialog/Upload"));
    197196        return pnl;
Note: See TracChangeset for help on using the changeset viewer.