Ignore:
Timestamp:
2012-03-08T10:04:21+01:00 (8 years ago)
Author:
akks
Message:

UrlLabel class simplification by Zverik, better label layout in VersionInfoPanel (see #7450, #7326)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r4602 r5050  
    22package org.openstreetmap.josm.gui.history;
    33
     4import java.awt.*;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
    6 import java.awt.BorderLayout;
    7 import java.awt.FlowLayout;
    8 import java.awt.GridBagConstraints;
    9 import java.awt.GridBagLayout;
    107import java.io.UnsupportedEncodingException;
    118import java.net.URLEncoder;
     
    4845
    4946        pnlUserAndChangeset = new JPanel();
    50         pnlUserAndChangeset.setLayout(new FlowLayout(FlowLayout.LEFT));
    51         lblUser = new UrlLabel();
     47        pnlUserAndChangeset.setLayout(new GridLayout(2,2));
     48        lblUser = new UrlLabel("", 2);
    5249        pnlUserAndChangeset.add(new JLabel(tr("User:")));
    5350        pnlUserAndChangeset.add(lblUser);
    5451        pnlUserAndChangeset.add(new JLabel(tr("Changeset:")));
    55         lblChangeset = new UrlLabel();
     52        lblChangeset = new UrlLabel("", 2);
    5653        pnlUserAndChangeset.add(lblChangeset);
    5754
Note: See TracChangeset for help on using the changeset viewer.