Ignore:
Timestamp:
2012-01-15T11:56:33+01:00 (13 years ago)
Author:
stoecker
Message:

use createLayout function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java

    r25137 r27464  
    1111import java.awt.event.KeyEvent;
    1212import java.text.DecimalFormat;
     13import java.util.Arrays;
    1314import java.util.Collection;
    1415
     
    6869        KeyEvent.VK_M, Shortcut.GROUP_LAYER), 150);
    6970
    70         JPanel buttonPanel = new JPanel(new GridLayout(1,2));
    71 
    7271        resetButton = new SideButton(marktr("Reset"), "select", "Measurement",
    7372                tr("Reset current measurement results and delete measurement path."), this);
    74         buttonPanel.add(resetButton);
    75         add(buttonPanel, BorderLayout.SOUTH);
    7673
    7774        JPanel valuePanel = new JPanel(new GridLayout(0,2));
     
    9996        valuePanel.add(segAngleLabel);
    10097
    101         add(valuePanel, BorderLayout.CENTER);
     98        this.setPreferredSize(new Dimension(0, 92));
    10299
    103         this.setPreferredSize(new Dimension(0, 92));
     100        createLayout(valuePanel, false, Arrays.asList(new SideButton[] {
     101            resetButton
     102        }));
     103
    104104        final MeasurementDialog dlg = this;
    105105
Note: See TracChangeset for help on using the changeset viewer.