Changeset 7411 in josm for trunk


Ignore:
Timestamp:
2014-08-16T01:44:56+02:00 (10 years ago)
Author:
Don-vip
Message:

see #10331 - layout adjustments for labels in presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java

    r7254 r7411  
    362362        }
    363363
     364        /**
     365         * Adds a new {@code JLabel} to the given panel.
     366         * @param p The panel
     367         * @param label The text label
     368         */
    364369        public static void addLabel(JPanel p, String label) {
    365             p.add(new JLabel(label), GBC.eol());
     370            p.add(new JLabel(label), GBC.eol().fill(GBC.HORIZONTAL));
    366371        }
    367372    }
     
    387392            }
    388393            if (url != null) {
    389                 p.add(new UrlLabel(url, locale_text, 2), GBC.eol().insets(0, 10, 0, 0));
     394                p.add(new UrlLabel(url, locale_text, 2), GBC.eol().insets(0, 10, 0, 0).fill(GBC.HORIZONTAL));
    390395            }
    391396            return false;
Note: See TracChangeset for help on using the changeset viewer.