Changeset 211 in josm
- Timestamp:
- 2007-04-04T14:23:22+02:00 (18 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r208 r211 328 328 bounds = !args.containsKey("no-fullscreen") ? new Rectangle(0,0,screenDimension.width,screenDimension.height) : new Rectangle(1000,740); 329 329 330 pleaseWaitDlg = new PleaseWaitDialog(); 330 // preinitialize a wait dialog for all early downloads (e.g. via command line) 331 pleaseWaitDlg = new PleaseWaitDialog(null); 331 332 } 332 333 333 334 public void postConstructorProcessCmdLine(Map<String, Collection<String>> args) { 335 // initialize the pleaseWaitDialog with the application as parent to handle focus stuff 336 pleaseWaitDlg = new PleaseWaitDialog(parent); 337 334 338 if (args.containsKey("download")) 335 339 for (String s : args.get("download")) -
src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r183 r211 98 98 * Draw an number of the order of the segment within the parents way 99 99 */ 100 pr ivatevoid drawOrderNumber(Segment ls, int orderNumber) {100 protected void drawOrderNumber(Segment ls, int orderNumber) { 101 101 int strlen = (""+orderNumber).length(); 102 102 Point p1 = nc.getPoint(ls.from.eastNorth); -
src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r153 r211 1 1 package org.openstreetmap.josm.gui; 2 2 3 import java.awt.Component; 3 4 import java.awt.GridBagLayout; 4 5 … … 24 25 public final JButton cancel = new JButton(I18n.tr("Cancel")); 25 26 26 public PleaseWaitDialog() { 27 super(JOptionPane.getFrameForComponent( Main.parent), true);27 public PleaseWaitDialog(Component parent) { 28 super(JOptionPane.getFrameForComponent(parent), true); 28 29 setLayout(new GridBagLayout()); 29 30 JPanel pane = new JPanel(new GridBagLayout()); -
test/org/openstreetmap/josm/io/IncompleteDownloaderTest.java
r176 r211 30 30 }; 31 31 32 Main.pleaseWaitDlg = new PleaseWaitDialog(); 32 Main.pleaseWaitDlg = new PleaseWaitDialog(null); 33 33 34 34 downloader.parse();
Note:
See TracChangeset
for help on using the changeset viewer.