Example usage for com.jgoodies.forms.layout Sizes MINIMUM

List of usage examples for com.jgoodies.forms.layout Sizes MINIMUM

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout Sizes MINIMUM.

Prototype

ComponentSize MINIMUM

To view the source code for com.jgoodies.forms.layout Sizes MINIMUM.

Click Source Link

Document

Use the maximum of all component minimum sizes as column or row size.

Usage

From source file:uk.ac.ebi.mnb.importer.xls.wizzard.ExcelImportDialog.java

License:Open Source License

@Override
public JPanel getNavigation() {
    JPanel panel = super.getNavigation();

    FormLayout navLayout = (FormLayout) panel.getLayout();

    navLayout.insertColumn(1, new ColumnSpec(Sizes.MINIMUM));
    navLayout.insertColumn(2, new ColumnSpec(Sizes.DLUX2));
    navLayout.insertColumn(3, new ColumnSpec(Sizes.MINIMUM));

    panel.add(new JButton(new PrevPanel()), cc.xy(1, 1));
    panel.add(new JButton(new NextPanel()), cc.xy(3, 1));

    return panel;
}