Package Summary  Overview Summary

class:JToolBar.Separator [NONE]

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
JToolBar

public static class JToolBar.Separator
extends JSeparator
A toolbar-specific separator. An object with dimension but no contents used to divide buttons on a tool bar into groups.

constructor:JToolBar.Separator() [NONE]

  • Separator

    public Separator()
    Creates a new toolbar separator with the default size as defined by the current look and feel.
  • constructor:JToolBar.Separator(java.awt.Dimension) [NONE]

    Separator

    public Separator?(Dimension size)
    Creates a new toolbar separator with the specified size.
    Parameters:
    size - the Dimension of the separator

    method:getUIClassID() [NONE]

  • getUIClassID

    public String getUIClassID()
    Returns the name of the L&F class that renders this component.
    Overrides:
    getUIClassID in class JSeparator
    Returns:
    the string "ToolBarSeparatorUI"
    See Also:
    JComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)
  • method:setSeparatorSize(java.awt.Dimension) [NONE]

    setSeparatorSize

    public void setSeparatorSize?(Dimension size)
    Sets the size of the separator.
    Parameters:
    size - the new Dimension of the separator

    method:getSeparatorSize() [NONE]

    getSeparatorSize

    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!)

    method:getMinimumSize() [NONE]

    getMinimumSize

    public Dimension getMinimumSize()
    Returns the minimum size for the separator.
    Overrides:
    getMinimumSize in class JComponent
    Returns:
    the Dimension object containing the separator's minimum size
    See Also:
    JComponent.setMinimumSize(java.awt.Dimension), ComponentUI

    method:getMaximumSize() [NONE]

    getMaximumSize

    public Dimension getMaximumSize()
    Returns the maximum size for the separator.
    Overrides:
    getMaximumSize in class JComponent
    Returns:
    the Dimension object containing the separator's maximum size
    See Also:
    JComponent.setMaximumSize(java.awt.Dimension), ComponentUI

    method:getPreferredSize() [NONE]

    getPreferredSize

    public Dimension getPreferredSize()
    Returns the preferred size for the separator.
    Overrides:
    getPreferredSize in class JComponent
    Returns:
    the Dimension object containing the separator's preferred size
    See Also:
    JComponent.setPreferredSize(java.awt.Dimension), ComponentUI

    © 2020 Oracle Corporation and/or its affiliates