Ignore:
Timestamp:
2016-03-23T22:36:15+01:00 (8 years ago)
Author:
Don-vip
Message:

code refactoring to ease creation of unit tests by avoiding as much as possible HeadlessException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r9543 r10035  
    4141import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    4242import org.openstreetmap.josm.gui.help.HelpUtil;
     43import org.openstreetmap.josm.gui.util.GuiHelper;
    4344import org.openstreetmap.josm.io.OnlineResource;
    4445import org.openstreetmap.josm.plugins.PluginHandler;
     
    229230     */
    230231    public DownloadDialog(Component parent, String helpTopic) {
    231         super(JOptionPane.getFrameForComponent(parent), tr("Download"), ModalityType.DOCUMENT_MODAL);
     232        super(GuiHelper.getFrameForComponent(parent), tr("Download"), ModalityType.DOCUMENT_MODAL);
    232233        HelpUtil.setHelpContext(getRootPane(), helpTopic);
    233234        getContentPane().setLayout(new BorderLayout());
Note: See TracChangeset for help on using the changeset viewer.