## Uses of Class
javax.swing.JToolBar

- Packages that use JToolBar
  Package | Description
  --- | ---
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.

- - ### Uses of JToolBar in javax.swing.plaf.basic

    Fields in javax.swing.plaf.basic declared as JToolBar
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected JToolBar` | BasicToolBarUI.`toolBar`
    `protected JToolBar` | BasicToolBarUI.DockingListener.`toolBar`

    Methods in javax.swing.plaf.basic with parameters of type JToolBar
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected BasicToolBarUI.DragWindow` | BasicToolBarUI.`createDragWindow(JToolBar toolbar)`
    `protected JFrame` | BasicToolBarUI.`createFloatingFrame(JToolBar toolbar)` No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
    `protected RootPaneContainer` | BasicToolBarUI.`createFloatingWindow(JToolBar toolbar)` Creates a window which contains the toolbar after it has been dragged out from its container

    Constructors in javax.swing.plaf.basic with parameters of type JToolBar
    Constructor | Description
    --- | ---
    `DockingListener(JToolBar t)`

  - ### Uses of JToolBar in javax.swing.plaf.metal

    Constructors in javax.swing.plaf.metal with parameters of type JToolBar
    Constructor | Description
    --- | ---
    `MetalDockingListener(JToolBar t)`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.