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.
JSeparator.AccessibleJSeparator
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
public Separator()
Creates a new toolbar separator with the default size as defined by the current look and feel.
public Separator(Dimension size)
Creates a new toolbar separator with the specified size.
size
- the Dimension
of the separatorpublic String getUIClassID()
Returns the name of the L&F class that renders this component.
getUIClassID
in class JSeparator
JComponent.getUIClassID()
, UIDefaults.getUI(javax.swing.JComponent)
public void setSeparatorSize(Dimension size)
Sets the size of the separator.
size
- the new Dimension
of the separatorpublic Dimension getSeparatorSize()
Returns the size of the separator
Dimension
object containing the separator's size (This is a reference, NOT a copy!)public Dimension getMinimumSize()
Returns the minimum size for the separator.
getMinimumSize
in class JComponent
Dimension
object containing the separator's minimum sizeJComponent.setMinimumSize(java.awt.Dimension)
, ComponentUI
public Dimension getMaximumSize()
Returns the maximum size for the separator.
getMaximumSize
in class JComponent
Dimension
object containing the separator's maximum sizeJComponent.setMaximumSize(java.awt.Dimension)
, ComponentUI
public Dimension getPreferredSize()
Returns the preferred size for the separator.
getPreferredSize
in class JComponent
Dimension
object containing the separator's preferred sizeJComponent.setPreferredSize(java.awt.Dimension)
, ComponentUI
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.