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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r9525 r9543  
    158158
    159159    /** JPanel containing both previous tables */
    160     private final JPanel bothTables = new JPanel();
     160    private final JPanel bothTables = new JPanel(new GridBagLayout());
    161161
    162162    // Popup menus
     
    259259        // combine both tables and wrap them in a scrollPane
    260260        boolean top = Main.pref.getBoolean("properties.presets.top", true);
    261         bothTables.setLayout(new GridBagLayout());
    262261        if (top) {
    263262            bothTables.add(presets, GBC.std().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2).anchor(GBC.NORTHWEST));
Note: See TracChangeset for help on using the changeset viewer.