Changeset 2687 in josm


Ignore:
Timestamp:
2009-12-28T00:14:59+01:00 (14 years ago)
Author:
Gubaer
Message:

Partial commit due to issue described in #4137
Breaks the build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java

    r2512 r2687  
    22package org.openstreetmap.josm.gui.progress;
    33
     4import java.awt.Component;
    45import java.awt.Dialog;
    56import java.awt.EventQueue;
     
    1617import org.openstreetmap.josm.Main;
    1718import org.openstreetmap.josm.gui.PleaseWaitDialog;
    18 import static org.openstreetmap.josm.tools.I18n.tr;
    1919
    2020public class PleaseWaitProgressMonitor extends AbstractProgressMonitor {
     
    3232
    3333    public PleaseWaitProgressMonitor(String windowTitle) {
    34         this(JOptionPane.getFrameForComponent(Main.parent));
     34        this(Main.parent);
    3535        this.windowTitle = windowTitle;
    3636    }
    3737
    38     public PleaseWaitProgressMonitor(Window dialogParent) {
     38    public PleaseWaitProgressMonitor(Component dialogParent) {
    3939        super(new CancelHandler());
    40         this.dialogParent = dialogParent;
     40        this.dialogParent = JOptionPane.getFrameForComponent(dialogParent);
     41    }
     42
     43    public PleaseWaitProgressMonitor(Component dialogParent, String windowTitle) {
     44        this(JOptionPane.getFrameForComponent(dialogParent));
     45        this.windowTitle = windowTitle;
    4146    }
    4247
Note: See TracChangeset for help on using the changeset viewer.