All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JToolBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JToolBar

public class JToolBar
extends JComponent
An implementation of a ToolBar


Variable Index

 o ETCHED
 o LOWERED
 o NONE
 o RAISED

Constructor Index

 o JToolBar()

Method Index

 o addSeparator()
Adds a separator to the ToolBar.
 o getBorderStyle()
Returns the style of the border.
 o getComponentAtIndex(int)
 o getComponentIndex(Component)
 o getUI()
Returns the toolbar's current UI.
 o paramString()
 o setBorderStyle(int)
Set the style of the border.
 o setFloatingLocation(int, int)
 o setUI(ToolBarUI)
Sets the toolbar's UI.
 o updateUI()
Gets a new UI object from the default UIFactory.

Variables

 o NONE
 public static final int NONE
 o LOWERED
 public static final int LOWERED
 o RAISED
 public static final int RAISED
 o ETCHED
 public static final int ETCHED

Constructors

 o JToolBar
 public JToolBar()

Methods

 o getUI
 public ToolBarUI getUI()
Returns the toolbar's current UI.

See Also:
setUI
 o setUI
 public void setUI(ToolBarUI ui)
Sets the toolbar's UI.

Parameters:
ui - the new ToolBarUI
See Also:
getUI
 o updateUI
 public void updateUI()
Gets a new UI object from the default UIFactory.

Overrides:
updateUI in class JComponent
 o getComponentIndex
 public int getComponentIndex(Component c)
 o getComponentAtIndex
 public Component getComponentAtIndex(int i)
 o getBorderStyle
 public int getBorderStyle()
Returns the style of the border.

 o setBorderStyle
 public void setBorderStyle(int borderStyle)
Set the style of the border.

 o addSeparator
 public void addSeparator()
Adds a separator to the ToolBar.

 o setFloatingLocation
 public void setFloatingLocation(int x,
                                 int y)
 o paramString
 public String paramString()
Overrides:
paramString in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index