Changeset 1064 in josm


Ignore:
Timestamp:
Nov 2, 2008 2:39:44 PM (5 years ago)
Author:
stoecker
Message:

fixed bug #1676

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java

    r1047 r1064  
    44import static org.openstreetmap.josm.tools.I18n.tr; 
    55 
     6import java.awt.Color; 
    67import java.awt.Dimension; 
    78import java.awt.GridBagLayout; 
     
    910import java.awt.event.FocusEvent; 
    1011import java.awt.event.FocusListener; 
     12import java.awt.event.MouseAdapter; 
    1113import java.util.HashMap; 
    1214 
     
    3840                        new JTextField(11) }; 
    3941        final JTextArea osmUrl = new JTextArea(); 
    40         final JLabel showUrl = new JLabel(); 
     42        final JTextArea showUrl = new JTextArea(); 
    4143        String noteUrl = tr("You can paste an URL here to download the area."); 
    4244         
     
    120122                dlg.add(osmUrl, GBC.eop().insets(10,0,5,0).fill()); 
    121123                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                }); 
    122132 
    123133                gui.tabpane.addTab(tr("Bounding Box"), dlg); 
Note: See TracChangeset for help on using the changeset viewer.