Changeset 3441 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-08-15T18:36:43+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r3083 r3441 30 30 import javax.swing.JPanel; 31 31 import javax.swing.JScrollPane; 32 import javax.swing.WindowConstants; 32 33 33 34 import org.openstreetmap.josm.Main; … … 81 82 82 83 addWindowListener(new WindowClosingAdapter()); 84 setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); 83 85 } 84 86 … … 274 276 } 275 277 278 public void closeDialog() { 279 setVisible(false); 280 dispose(); 281 } 282 276 283 class WindowClosingAdapter extends WindowAdapter { 277 284 @Override … … 290 297 protected void cancelWhenInEditingModel() { 291 298 setUserAction(UserAction.CANCEL); 292 setVisible(false);299 closeDialog(); 293 300 } 294 301 … … 328 335 public void actionPerformed(ActionEvent e) { 329 336 setUserAction(UserAction.PROCEED); 330 setVisible(false);337 closeDialog(); 331 338 } 332 339 public void propertyChange(PropertyChangeEvent evt) { … … 519 526 if (cancelled) { 520 527 setUserAction(UserAction.CANCEL); 521 setVisible(false);528 closeDialog(); 522 529 } 523 530 } else { 524 531 setUserAction(UserAction.PROCEED); 525 setVisible(false);532 closeDialog(); 526 533 } 527 534 }
Note:
See TracChangeset
for help on using the changeset viewer.