Changeset 13745 in josm for trunk/src/org
- Timestamp:
- 2018-05-13T09:38:51+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r13741 r13745 52 52 add(new JLabel(tr("{0} Make sure OSM has the permission to use this service", "1.")), GBC.eol()); 53 53 add(new JLabel(tr("{0} Enter GetCapabilities URL", "2.")), GBC.eol()); 54 add(rawUrl, GBC.eol().fill( ));54 add(rawUrl, GBC.eol().fill(GBC.HORIZONTAL)); 55 55 rawUrl.setLineWrap(true); 56 56 JButton getLayers = new JButton(tr("{0} Get layers", "3.")); … … 59 59 add(new JLabel(tr("{0} Select layers", "4.")), GBC.eol()); 60 60 61 add(endpoint, GBC.eol() .fill());61 add(endpoint, GBC.eol()); 62 62 setDefaultLayers.setEnabled(false); 63 add(setDefaultLayers, GBC.eol() .fill());63 add(setDefaultLayers, GBC.eol()); 64 64 add(new JScrollPane(tree.getLayerTree()), GBC.eol().fill().weight(1, 100)); 65 65 … … 75 75 add(wmsInstruction, GBC.eol()); 76 76 wmsInstruction.setLabelFor(wmsUrl); 77 add(wmsUrl, GBC.eop().fill( ));77 add(wmsUrl, GBC.eop().fill(GBC.HORIZONTAL)); 78 78 wmsUrl.setLineWrap(true); 79 79 80 80 add(new JLabel(tr("{0} Enter name for this layer", "7.")), GBC.eol()); 81 add(name, GBC.eop().fill( ));81 add(name, GBC.eop().fill(GBC.HORIZONTAL)); 82 82 83 83 getLayers.addActionListener(e -> { -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
r13743 r13745 46 46 add(new JLabel(tr("{0} Make sure OSM has the permission to use this service", "1.")), GBC.eol()); 47 47 add(new JLabel(tr("{0} Enter GetCapabilities URL", "2.")), GBC.eol()); 48 add(rawUrl, GBC.eop().fill( ));48 add(rawUrl, GBC.eop().fill(GBC.HORIZONTAL)); 49 49 rawUrl.setLineWrap(true); 50 50 rawUrl.setAlignmentY(TOP_ALIGNMENT); … … 54 54 getLayers.setEnabled(setDefaultLayer.isSelected()); 55 55 }); 56 add(setDefaultLayer, GBC.eop().fill()); 57 add(getLayers, GBC.eop().fill()); 58 add(new JLabel(tr("Choose default layer")), GBC.eol().fill()); 59 layerPanel.setPreferredSize(new Dimension(250, 100)); 56 add(setDefaultLayer, GBC.eop()); 57 add(getLayers, GBC.eop().fill(GBC.HORIZONTAL)); 58 add(new JLabel(tr("Choose default layer")), GBC.eol()); 60 59 add(layerPanel, GBC.eol().fill()); 61 60
Note:
See TracChangeset
for help on using the changeset viewer.