Example usage for javax.swing Box.Filler Box.Filler

List of usage examples for javax.swing Box.Filler Box.Filler

Introduction

In this page you can find the example usage for javax.swing Box.Filler Box.Filler.

Prototype

@ConstructorProperties({ "minimumSize", "preferredSize", "maximumSize" })
public Filler(Dimension min, Dimension pref, Dimension max) 

Source Link

Document

Constructor to create shape with the given size ranges.

Usage

From source file:com.clank.launcher.swing.SwingHelper.java

public static Component alignTabbedPane(Component component) {
    JPanel container = new JPanel();
    container.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS));
    container.add(component);/*from  ww w . j  a  v  a 2  s  .co m*/
    container.add(new Box.Filler(new Dimension(0, 0), new Dimension(0, 10000), new Dimension(0, 10000)));
    SwingHelper.removeOpaqueness(container);
    return container;
}