Changeset 1064 in josm
- Timestamp:
- 2008-11-02T14:39:44+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r1047 r1064 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Color; 6 7 import java.awt.Dimension; 7 8 import java.awt.GridBagLayout; … … 9 10 import java.awt.event.FocusEvent; 10 11 import java.awt.event.FocusListener; 12 import java.awt.event.MouseAdapter; 11 13 import java.util.HashMap; 12 14 … … 38 40 new JTextField(11) }; 39 41 final JTextArea osmUrl = new JTextArea(); 40 final J Label showUrl = new JLabel();42 final JTextArea showUrl = new JTextArea(); 41 43 String noteUrl = tr("You can paste an URL here to download the area."); 42 44 … … 120 122 dlg.add(osmUrl, GBC.eop().insets(10,0,5,0).fill()); 121 123 dlg.add(showUrl, GBC.eop().insets(10,0,5,5)); 124 showUrl.setEditable(false); 125 showUrl.setBackground(dlg.getBackground()); 126 showUrl.addFocusListener(new FocusAdapter(){ 127 @Override 128 public void focusGained(FocusEvent e) { 129 showUrl.selectAll(); 130 } 131 }); 122 132 123 133 gui.tabpane.addTab(tr("Bounding Box"), dlg);
Note:
See TracChangeset
for help on using the changeset viewer.