Example usage for Java javax.swing JToolBar fields, constructors, methods, implement or subclass
The text is from its open source code.
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 . |
JButton | add(Action a) Adds a new JButton which dispatches the action. |
Component | add(String name, Component comp) Adds the specified component to this container. |
void | addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list. |
void | addSeparator() Appends a separator of default size to the end of the tool bar. |
void | addSeparator(Dimension size) Appends a separator of a specified size to the end of the tool bar. |
void | applyComponentOrientation(ComponentOrientation o) Sets the ComponentOrientation property of this container and all components contained within it. |
ActionMap | getActionMap() Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding. |
Border | getBorder() Returns the border of this component or null if no border is currently set. |
Component | getComponent(int n) Gets the nth component in this container. |
int | getComponentCount() Gets the number of components in this panel. |
int | getComponentIndex(Component c) Returns the index of the specified component. |
Component[] | getComponents() Gets all the components in this container. |
InputMap | getInputMap(int condition) Returns the InputMap that is used during condition . |
LayoutManager | getLayout() Gets the layout manager for this container. |
int | getOrientation() Returns the current orientation of the tool bar. |
ToolBarUI | getUI() Returns the tool bar's current UI. |
boolean | isFloatable() Gets the floatable property. |
boolean | isRollover() Returns the rollover state. |
void | putClientProperty(Object key, Object value) Adds an arbitrary key/value "client property" to this component. |
void | remove(int index) Removes the component, specified by index , from this container. |
void | repaint() Repaints this component. |
void | revalidate() Supports deferred automatic layout. |
void | setAlignmentX(float alignmentX) Sets the horizontal alignment. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setBorder(Border border) Sets the border of this component. |
void | setBorderPainted(boolean b) Sets the borderPainted property, which is true if the border should be painted. |
void | setComponentOrientation(ComponentOrientation o) Sets the language-sensitive orientation that is to be used to order the elements or text within this component. |
void | setCursor(Cursor cursor) Sets the cursor image to the specified cursor. |
void | setEnabled(boolean enabled) Sets whether or not this component is enabled. |
void | setFloatable(boolean b) Sets the floatable property, which must be true for the user to move the tool bar. |
void | setLayout(LayoutManager mgr) |
void | setMargin(Insets m) Sets the margin between the tool bar's border and its buttons. |
void | setMaximumSize(Dimension maximumSize) Sets the maximum size of this component to a constant value. |
void | setMinimumSize(Dimension minimumSize) Sets the minimum size of this component to a constant value. |
void | setName(String name) Sets the name of the component to the specified string. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setOrientation(int o) Sets the orientation of the tool bar. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setRequestFocusEnabled(boolean requestFocusEnabled) Provides a hint as to whether or not this JComponent should get focus. |
void | setRollover(boolean rollover) Sets the rollover state of this toolbar. |
void | setVisible(boolean aFlag) Makes the component visible or invisible. |
void | validate() Validates this container and all of its subcomponents. |