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/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java

    r25785 r27465  
    352352                dataPanel.add(geomTree);
    353353
    354                 add(new JScrollPane(dataPanel), BorderLayout.CENTER);
    355 
    356                 JPanel buttonPanel = new JPanel(new GridLayout(1, 3));
    357 
    358354                checkButton = new SideButton(marktr("Check"), "checksignatures", "TrustOSM",
    359355                                tr("Check all available signatures for selected object."), this);
    360                 buttonPanel.add(checkButton);
    361 
    362356                signButton = new SideButton(marktr("Sign"), "sign", "TrustOSM",
    363357                                tr("Digital sign selected Tags, if you believe they are correct."), this);
    364                 buttonPanel.add(signButton);
    365 
    366358                showButton = new SideButton(marktr("Show"), "showsig", "TrustOSM",
    367359                                tr("Show all available signatures for selected attribute."), this);
    368                 buttonPanel.add(showButton);
    369 
    370 
    371                 add(buttonPanel, BorderLayout.SOUTH);
     360
     361                createLayout(dataPanel, true, Arrays.asList(new SideButton[] {
     362                        checkButton, signButton, showButton
     363                }));
    372364                DataSet.addSelectionListener(this);
    373365        }
Note: See TracChangeset for help on using the changeset viewer.