Changeset 1677 in josm for trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
- Timestamp:
- 17.06.2009 10:04:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r1415 r1677 17 17 import javax.swing.JTextField; 18 18 import javax.swing.SwingUtilities; 19 import javax.swing.event.DocumentListener; 20 import javax.swing.event.DocumentEvent; 19 import javax.swing.event.DocumentListener; 20 import javax.swing.event.DocumentEvent; 21 21 22 22 import org.openstreetmap.josm.data.Bounds; … … 73 73 f.addFocusListener(dialogUpdater); 74 74 } 75 76 class osmUrlRefresher implements DocumentListener { 77 public void changedUpdate(DocumentEvent e) { parseURL(gui); } 78 public void insertUpdate(DocumentEvent e) { parseURL(gui); } 79 public void removeUpdate(DocumentEvent e) { parseURL(gui); } 80 } 81 75 76 class osmUrlRefresher implements DocumentListener { 77 public void changedUpdate(DocumentEvent e) { parseURL(gui); } 78 public void insertUpdate(DocumentEvent e) { parseURL(gui); } 79 public void removeUpdate(DocumentEvent e) { parseURL(gui); } 80 } 81 82 82 KeyListener osmUrlKeyListener = new KeyListener() { 83 83 public void keyPressed(KeyEvent keyEvent) {} … … 88 88 public void keyTyped(KeyEvent keyEvent) {} 89 89 }; 90 90 91 91 osmUrl.addKeyListener(osmUrlKeyListener); 92 osmUrl.getDocument().addDocumentListener(new osmUrlRefresher()); 92 osmUrl.getDocument().addDocumentListener(new osmUrlRefresher()); 93 93 94 94 // select content on receiving focus. this seems to be the default in the … … 138 138 updateUrl(gui); 139 139 } 140 140 141 141 private boolean parseURL(DownloadDialog gui) { 142 142 Bounds b = OsmUrlToBounds.parse(osmUrl.getText());
Note: See TracChangeset
for help on using the changeset viewer.
