public static class

JToolBar.Separator

extends JSeparator
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JSeparator
           ↳ javax.swing.JToolBar.Separator

Class Overview

A toolbar-specific separator. An object with dimension but no contents used to divide buttons on a tool bar into groups.

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
From interface javax.swing.SwingConstants
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
JToolBar.Separator()
Creates a new toolbar separator with the default size as defined by the current look and feel.
JToolBar.Separator(Dimension size)
Creates a new toolbar separator with the specified size.
Public Methods
Dimension getMaximumSize()
Returns the maximum size for the separator.
Dimension getMinimumSize()
Returns the minimum size for the separator.
Dimension getPreferredSize()
Returns the preferred size for the separator.
Dimension getSeparatorSize()
Returns the size of the separator
String getUIClassID()
Returns the name of the L&F class that renders this component.
void setSeparatorSize(Dimension size)
Sets the size of the separator.
[Expand]
Inherited Methods
From class javax.swing.JSeparator
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible

Public Constructors

public JToolBar.Separator ()

Creates a new toolbar separator with the default size as defined by the current look and feel.

public JToolBar.Separator (Dimension size)

Creates a new toolbar separator with the specified size.

Parameters
size the Dimension of the separator

Public Methods

public Dimension getMaximumSize ()

Returns the maximum size for the separator.

Returns
  • the Dimension object containing the separator's maximum size

public Dimension getMinimumSize ()

Returns the minimum size for the separator.

Returns
  • the Dimension object containing the separator's minimum size

public Dimension getPreferredSize ()

Returns the preferred size for the separator.

Returns
  • the Dimension object containing the separator's preferred size

public Dimension getSeparatorSize ()

Returns the size of the separator

Returns
  • the Dimension object containing the separator's size (This is a reference, NOT a copy!)

public String getUIClassID ()

Returns the name of the L&F class that renders this component.

Returns
  • the string "ToolBarSeparatorUI"

public void setSeparatorSize (Dimension size)

Sets the size of the separator.

Parameters
size the new Dimension of the separator