Changeset 2138 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-14T23:02:59+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r2132 r2138 46 46 47 47 final String prefName = dialog.getClass().getName()+ ".geometry"; 48 ExtendedDialog dialog = new ExtendedDialog(Main.parent, tr("Download"), new String[] {tr("OK"), tr("Cancel")}) { 49 @Override 50 public void setVisible(boolean visible) { 51 if (visible) { 52 new WindowGeometry( 53 prefName, 54 WindowGeometry.centerInWindow(Main.parent, new Dimension(1000,600)) 55 ).apply(this); 56 } else { 57 new WindowGeometry(this).remember(prefName); 58 } 59 super.setVisible(visible); 60 } 61 }; 48 final WindowGeometry wg = WindowGeometry.centerInWindow(Main.parent, 49 new Dimension(1000,600)); 50 51 ExtendedDialog dialog = new ExtendedDialog(Main.parent, 52 tr("Download"), 53 new String[] {tr("OK"), tr("Cancel")}); 62 54 dialog.setContent(downPanel, false /* don't use a scroll pane inside the dialog */); 63 55 dialog.setButtonIcons(new String[] {"ok", "cancel"}); 56 dialog.setRememberWindowGeometry(prefName, wg); 64 57 return dialog; 65 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
