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
-
ETCHED
-
-
LOWERED
-
-
NONE
-
-
RAISED
-
-
JToolBar()
-
-
addSeparator()
- Adds a separator to the ToolBar.
-
getBorderStyle()
- Returns the style of the border.
-
getComponentAtIndex(int)
-
-
getComponentIndex(Component)
-
-
getUI()
- Returns the toolbar's current UI.
-
paramString()
-
-
setBorderStyle(int)
- Set the style of the border.
-
setFloatingLocation(int, int)
-
-
setUI(ToolBarUI)
- Sets the toolbar's UI.
-
updateUI()
- Gets a new UI object from the default UIFactory.
NONE
public static final int NONE
LOWERED
public static final int LOWERED
RAISED
public static final int RAISED
ETCHED
public static final int ETCHED
JToolBar
public JToolBar()
getUI
public ToolBarUI getUI()
- Returns the toolbar's current UI.
- See Also:
- setUI
setUI
public void setUI(ToolBarUI ui)
- Sets the toolbar's UI.
- Parameters:
- ui - the new ToolBarUI
- See Also:
- getUI
updateUI
public void updateUI()
- Gets a new UI object from the default UIFactory.
- Overrides:
- updateUI in class JComponent
getComponentIndex
public int getComponentIndex(Component c)
getComponentAtIndex
public Component getComponentAtIndex(int i)
getBorderStyle
public int getBorderStyle()
- Returns the style of the border.
setBorderStyle
public void setBorderStyle(int borderStyle)
- Set the style of the border.
addSeparator
public void addSeparator()
- Adds a separator to the ToolBar.
setFloatingLocation
public void setFloatingLocation(int x,
int y)
paramString
public String paramString()
- Overrides:
- paramString in class Container
All Packages Class Hierarchy This Package Previous Next Index