Ignore:
Timestamp:
2012-01-15T12:10:55+01:00 (13 years ago)
Author:
stoecker
Message:

use createLayout function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckDialog.java

    r25501 r27465  
    99import java.awt.event.ActionListener;
    1010import java.awt.event.KeyEvent;
     11import java.util.Arrays;
    1112import java.util.Collection;
    1213
     
    8788
    8889                // ButtonPanel
    89                 JPanel buttonPanel = new JPanel();
    90                 buttonPanel.setLayout(new GridLayout(1, 3));
    9190                createDigraphButton = new SideButton(marktr("Create"), "digraphcreation", tr ("start the channel digraph creation"),
    9291                                tr("create the channel digraph"), this);
    93                 buttonPanel.add(createDigraphButton);
    9492                checkJunctionButton = new SideButton(marktr("Check "), "junctioncheck", tr("check a marked subset if it is a junction"),
    9593                                tr("check the subust for junction properties"), this);
    9694                checkJunctionButton.setEnabled(false);
    97                 buttonPanel.add(checkJunctionButton);
    9895                searchJunctionButton = new SideButton(marktr("Search "), "junctionsearch", tr ("search for junctions into a subset of channels"),
    9996                                tr("search for junctions in the channel subset"), this);
    10097                searchJunctionButton.setEnabled(false);
    101                 buttonPanel.add(searchJunctionButton);
    10298
    103                 add(centerPanel, BorderLayout.CENTER);
    104                 add(buttonPanel, BorderLayout.SOUTH);
     99                createLayout(centerPanel, false, Arrays.asList(new SideButton[] {
     100                        createDigraphButton, checkJunctionButton, searchJunctionButton
     101                }));
    105102        }
    106103
Note: See TracChangeset for help on using the changeset viewer.