List of usage examples for javax.swing Box.Filler Box.Filler
@ConstructorProperties({ "minimumSize", "preferredSize", "maximumSize" }) public Filler(Dimension min, Dimension pref, Dimension max)
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; }