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/io/UploadStrategySelectionPanel.java

    r8840 r9543  
    7171
    7272    protected JPanel buildUploadStrategyPanel() {
    73         JPanel pnl = new JPanel();
    74         pnl.setLayout(new GridBagLayout());
     73        JPanel pnl = new JPanel(new GridBagLayout());
    7574        ButtonGroup bgStrategies = new ButtonGroup();
    7675        rbStrategy = new EnumMap<>(UploadStrategy.class);
     
    181180
    182181    protected JPanel buildMultiChangesetPolicyPanel() {
    183         pnlMultiChangesetPolicyPanel = new JPanel();
    184         pnlMultiChangesetPolicyPanel.setLayout(new GridBagLayout());
     182        pnlMultiChangesetPolicyPanel = new JPanel(new GridBagLayout());
    185183        GridBagConstraints gc = new GridBagConstraints();
    186184        gc.gridx = 0;
Note: See TracChangeset for help on using the changeset viewer.