Changeset 17732 in josm for trunk/src


Ignore:
Timestamp:
2021-04-09T21:22:56+02:00 (3 years ago)
Author:
simon04
Message:

see #16163 - Prefer GridBagConstraints.LINE_START over GridBagConstraints.WEST

Location:
trunk/src/org/openstreetmap/josm
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java

    r16509 r17732  
    151151            if (!s.url.isEmpty()) {
    152152                panel.add(serviceBtn, GBC.std());
    153                 panel.add(new UrlLabel(s.url, tr("Visit Homepage")), GBC.eol().anchor(GridBagConstraints.EAST));
     153                panel.add(new UrlLabel(s.url, tr("Visit Homepage")), GBC.eol().anchor(GridBagConstraints.LINE_END));
    154154            } else {
    155                 panel.add(serviceBtn, GBC.eol().anchor(GridBagConstraints.WEST));
     155                panel.add(serviceBtn, GBC.eol().anchor(GridBagConstraints.LINE_START));
    156156            }
    157157        }
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r16553 r17732  
    262262
    263263        GBC a = GBC.eol();
    264         a.anchor = GridBagConstraints.EAST;
     264        a.anchor = GridBagConstraints.LINE_END;
    265265        checkBeforeUpload = new JCheckBox();
    266266        checkBeforeUpload.setSelected(testBeforeUpload);
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r17621 r17732  
    11171117    public void addGui(JPanel testPanel) {
    11181118        GBC a = GBC.eol();
    1119         a.anchor = GridBagConstraints.EAST;
     1119        a.anchor = GridBagConstraints.LINE_END;
    11201120
    11211121        testPanel.add(new JLabel(name+" :"), GBC.eol().insets(3, 0, 0, 0));
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r17715 r17732  
    619619            gc.weightx = gc.weighty = 0.0;
    620620            gc.fill = GridBagConstraints.NONE;
    621             gc.anchor = GridBagConstraints.WEST;
     621            gc.anchor = GridBagConstraints.LINE_START;
    622622            panelTf.add(new JLabel(tr("Photo time (from exif):")), gc);
    623623
     
    634634            gc.weightx = gc.weighty = 0.0;
    635635            gc.fill = GridBagConstraints.NONE;
    636             gc.anchor = GridBagConstraints.WEST;
     636            gc.anchor = GridBagConstraints.LINE_START;
    637637            panelTf.add(new JLabel(tr("Gps time (read from the above photo): ")), gc);
    638638
     
    654654            gc.weightx = gc.weighty = 0.0;
    655655            gc.fill = GridBagConstraints.NONE;
    656             gc.anchor = GridBagConstraints.WEST;
     656            gc.anchor = GridBagConstraints.LINE_START;
    657657            panelTf.add(new JLabel(tr("Photo taken in the timezone of: ")), gc);
    658658
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java

    r17312 r17732  
    7979        GridBagConstraints gc = new GridBagConstraints();
    8080
    81         gc.anchor = GridBagConstraints.WEST;
     81        gc.anchor = GridBagConstraints.LINE_START;
    8282        gc.insets = new Insets(5, 5, 0, 0);
    8383        gc.fill = HORIZONTAL;
     
    149149        JPanel pnl = new AutoSizePanel();
    150150        GridBagConstraints gc = new GridBagConstraints();
    151         gc.anchor = GridBagConstraints.WEST;
     151        gc.anchor = GridBagConstraints.LINE_START;
    152152        gc.insets = new Insets(5, 5, 0, 0);
    153153        gc.fill = HORIZONTAL;
  • trunk/src/org/openstreetmap/josm/tools/GBC.java

    r10649 r17732  
    2828    public static GBC std() {
    2929        GBC c = new GBC();
    30         c.anchor = WEST;
     30        c.anchor = GridBagConstraints.LINE_START;
    3131        return c;
    3232    }
Note: See TracChangeset for help on using the changeset viewer.