Changeset 417 in josm
- Timestamp:
- 2007-10-25T01:59:23+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r298 r417 21 21 import javax.swing.JTextField; 22 22 import javax.swing.SwingUtilities; 23 import javax.swing.text.JTextComponent; 23 24 24 25 import org.openstreetmap.josm.Main; … … 99 100 100 101 osmUrl.addKeyListener(osmUrlRefresher); 102 103 // select content on receiving focus. this seems to be the default in the 104 // windows look+feel but not for others. needs invokeLater to avoid strange 105 // side effects that will cancel out the newly made selection otherwise. 106 osmUrl.addFocusListener(new FocusAdapter() { 107 @Override public void focusGained(FocusEvent e) { 108 SwingUtilities.invokeLater(new Runnable() { 109 public void run() { 110 osmUrl.selectAll(); 111 } 112 }); 113 } 114 }); 101 115 osmUrl.setLineWrap(true); 102 116 osmUrl.setBorder(latlon[0].getBorder());
Note:
See TracChangeset
for help on using the changeset viewer.