javax.swing

Class JToolBar.Separator

public static class JToolBar.Separator extends JSeparator

This is an extension of JSeparator used in toolbars. Unlike JSeparator, nothing is painted for this Separator, it is only blank space that separates components.
Constructor Summary
Separator()
Creates a new Separator object.
Separator(Dimension size)
Creates a new Separator object with the given size.
Method Summary
DimensiongetMaximumSize()
This method returns the maximum size of the Separator.
DimensiongetMinimumSize()
This method returns the minimum size of the Separator.
DimensiongetPreferredSize()
This method returns the preferred size of the Separator.
DimensiongetSeparatorSize()
This method returns the size of the Separator.
StringgetUIClassID()
This method returns the String ID of the UI class of Separator.
voidsetSeparatorSize(Dimension size)
This method sets the size of the Separator.

Constructor Detail

Separator

public Separator()
Creates a new Separator object.

Separator

public Separator(Dimension size)
Creates a new Separator object with the given size.

Parameters: size The size of the separator.

Method Detail

getMaximumSize

public Dimension getMaximumSize()
This method returns the maximum size of the Separator.

Returns: The maximum size of the Separator.

getMinimumSize

public Dimension getMinimumSize()
This method returns the minimum size of the Separator.

Returns: The minimum size of the Separator.

getPreferredSize

public Dimension getPreferredSize()
This method returns the preferred size of the Separator.

Returns: The preferred size of the Separator.

getSeparatorSize

public Dimension getSeparatorSize()
This method returns the size of the Separator.

Returns: The size of the Separator.

getUIClassID

public String getUIClassID()
This method returns the String ID of the UI class of Separator.

Returns: The UI class' String ID.

setSeparatorSize

public void setSeparatorSize(Dimension size)
This method sets the size of the Separator.

Parameters: size The new size of the Separator.