Java javax.swing JToolBar fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JToolBar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JToolBar.

The text is from its open source code.

Subclass

javax.swing.JToolBar has subclasses.
Click this link to see all its subclasses.

Constructor

JToolBar(String name, int orientation)
Creates a new tool bar with a specified name and orientation.
JToolBar()
Creates a new tool bar; orientation defaults to HORIZONTAL.
JToolBar(int orientation)
Creates a new tool bar with the specified orientation.
JToolBar(String name)
Creates a new tool bar with the specified name.

Method

JButtonadd(Action a)
Adds a new JButton which dispatches the action.
Componentadd(String name, Component comp)
Adds the specified component to this container.
voidaddPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
voidaddSeparator()
Appends a separator of default size to the end of the tool bar.
voidaddSeparator(Dimension size)
Appends a separator of a specified size to the end of the tool bar.
voidapplyComponentOrientation(ComponentOrientation o)
Sets the ComponentOrientation property of this container and all components contained within it.
ActionMapgetActionMap()
Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding.
BordergetBorder()
Returns the border of this component or null if no border is currently set.
ComponentgetComponent(int n)
Gets the nth component in this container.
intgetComponentCount()
Gets the number of components in this panel.
intgetComponentIndex(Component c)
Returns the index of the specified component.
Component[]getComponents()
Gets all the components in this container.
InputMapgetInputMap(int condition)
Returns the InputMap that is used during condition.
LayoutManagergetLayout()
Gets the layout manager for this container.
intgetOrientation()
Returns the current orientation of the tool bar.
ToolBarUIgetUI()
Returns the tool bar's current UI.
booleanisFloatable()
Gets the floatable property.
booleanisRollover()
Returns the rollover state.
voidputClientProperty(Object key, Object value)
Adds an arbitrary key/value "client property" to this component.
voidremove(int index)
Removes the component, specified by index , from this container.
voidrepaint()
Repaints this component.
voidrevalidate()
Supports deferred automatic layout.
voidsetAlignmentX(float alignmentX)
Sets the horizontal alignment.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetBorderPainted(boolean b)
Sets the borderPainted property, which is true if the border should be painted.
voidsetComponentOrientation(ComponentOrientation o)
Sets the language-sensitive orientation that is to be used to order the elements or text within this component.
voidsetCursor(Cursor cursor)
Sets the cursor image to the specified cursor.
voidsetEnabled(boolean enabled)
Sets whether or not this component is enabled.
voidsetFloatable(boolean b)
Sets the floatable property, which must be true for the user to move the tool bar.
voidsetLayout(LayoutManager mgr)
voidsetMargin(Insets m)
Sets the margin between the tool bar's border and its buttons.
voidsetMaximumSize(Dimension maximumSize)
Sets the maximum size of this component to a constant value.
voidsetMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetOrientation(int o)
Sets the orientation of the tool bar.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetRequestFocusEnabled(boolean requestFocusEnabled)
Provides a hint as to whether or not this JComponent should get focus.
voidsetRollover(boolean rollover)
Sets the rollover state of this toolbar.
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.
voidvalidate()
Validates this container and all of its subcomponents.