Changeset 2687 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-12-28T00:14:59+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r2512 r2687 2 2 package org.openstreetmap.josm.gui.progress; 3 3 4 import java.awt.Component; 4 5 import java.awt.Dialog; 5 6 import java.awt.EventQueue; … … 16 17 import org.openstreetmap.josm.Main; 17 18 import org.openstreetmap.josm.gui.PleaseWaitDialog; 18 import static org.openstreetmap.josm.tools.I18n.tr;19 19 20 20 public class PleaseWaitProgressMonitor extends AbstractProgressMonitor { … … 32 32 33 33 public PleaseWaitProgressMonitor(String windowTitle) { 34 this( JOptionPane.getFrameForComponent(Main.parent));34 this(Main.parent); 35 35 this.windowTitle = windowTitle; 36 36 } 37 37 38 public PleaseWaitProgressMonitor( WindowdialogParent) {38 public PleaseWaitProgressMonitor(Component dialogParent) { 39 39 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; 41 46 } 42 47
Note:
See TracChangeset
for help on using the changeset viewer.