javax.swing

Class Box.Filler

public static class Box.Filler extends JComponent implements Accessible

A component that servers as a filler in BoxLayout controlled containers.
Nested Class Summary
protected classBox.Filler.AccessibleBoxFiller
Provides accessibility support for Box.Filler.
Constructor Summary
Filler(Dimension min, Dimension pref, Dimension max)
Creates a new instance of Filler.
Method Summary
voidchangeShape(Dimension min, Dimension pref, Dimension max)
Changes the dimensions of this Filler.
AccessibleContextgetAccessibleContext()
DimensiongetMaximumSize()
Returns the maximum size of this Filler.
DimensiongetMinimumSize()
Returns the minimum size of this Filler.
DimensiongetPreferredSize()
Returns the preferred size of this Filler.

Constructor Detail

Filler

public Filler(Dimension min, Dimension pref, Dimension max)
Creates a new instance of Filler.

Parameters: min the minimum size of the filler. pref the preferred size of the filler. max the maximum size of the filler.

Method Detail

changeShape

public void changeShape(Dimension min, Dimension pref, Dimension max)
Changes the dimensions of this Filler.

Parameters: min the new minimum size of the filler. pref the new preferred size of the filler. max the new maximum size of the filler.

getAccessibleContext

public AccessibleContext getAccessibleContext()

getMaximumSize

public Dimension getMaximumSize()
Returns the maximum size of this Filler.

Returns: the maximum size of this Filler.

getMinimumSize

public Dimension getMinimumSize()
Returns the minimum size of this Filler.

Returns: the minimum size of this Filler.

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred size of this Filler.

Returns: the preferred size of this Filler.