Changeset 13745 in josm for trunk/src/org


Ignore:
Timestamp:
2018-05-13T09:38:51+02:00 (7 years ago)
Author:
wiktorn
Message:

Layout fixes

See: #16249

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  
    5252        add(new JLabel(tr("{0} Make sure OSM has the permission to use this service", "1.")), GBC.eol());
    5353        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));
    5555        rawUrl.setLineWrap(true);
    5656        JButton getLayers = new JButton(tr("{0} Get layers", "3."));
     
    5959        add(new JLabel(tr("{0} Select layers", "4.")), GBC.eol());
    6060
    61         add(endpoint, GBC.eol().fill());
     61        add(endpoint, GBC.eol());
    6262        setDefaultLayers.setEnabled(false);
    63         add(setDefaultLayers, GBC.eol().fill());
     63        add(setDefaultLayers, GBC.eol());
    6464        add(new JScrollPane(tree.getLayerTree()), GBC.eol().fill().weight(1, 100));
    6565
     
    7575        add(wmsInstruction, GBC.eol());
    7676        wmsInstruction.setLabelFor(wmsUrl);
    77         add(wmsUrl, GBC.eop().fill());
     77        add(wmsUrl, GBC.eop().fill(GBC.HORIZONTAL));
    7878        wmsUrl.setLineWrap(true);
    7979
    8080        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));
    8282
    8383        getLayers.addActionListener(e -> {
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java

    r13743 r13745  
    4646        add(new JLabel(tr("{0} Make sure OSM has the permission to use this service", "1.")), GBC.eol());
    4747        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));
    4949        rawUrl.setLineWrap(true);
    5050        rawUrl.setAlignmentY(TOP_ALIGNMENT);
     
    5454                getLayers.setEnabled(setDefaultLayer.isSelected());
    5555        });
    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());
    6059        add(layerPanel, GBC.eol().fill());
    6160
Note: See TracChangeset for help on using the changeset viewer.