Ignore:
Timestamp:
2016-01-20T00:05:07+01:00 (3 years ago)
Author:
Don-vip
Message:

refactoring - global simplification of use of setLayout method - simply pass layout to JPanel constructor

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

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

    r9453 r9543  
    3939     */
    4040    protected JPanel createVersionTablePanel() {
    41         JPanel pnl = new JPanel();
    42         pnl.setLayout(new BorderLayout());
     41        JPanel pnl = new JPanel(new BorderLayout());
    4342
    4443        VersionTable versionTable = new VersionTable(model);
     
    6362        relationMemberListViewer = new RelationMemberListViewer(model);
    6463        coordinateInfoViewer = new CoordinateInfoViewer(model);
    65         JPanel pnl = new JPanel();
    66         pnl.setLayout(new BorderLayout());
     64        JPanel pnl = new JPanel(new BorderLayout());
    6765        pnl.add(tpViewers, BorderLayout.CENTER);
    6866
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java

    r9059 r9543  
    8282        add(browser, BorderLayout.CENTER);
    8383
    84         JPanel pnl = new JPanel();
    85         pnl.setLayout(new FlowLayout(FlowLayout.CENTER));
     84        JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER));
    8685
    8786        SideButton btn = new SideButton(new ReloadAction());
Note: See TracChangeset for help on using the changeset viewer.