Uses of Class javax.swing.JSeparator (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
javax.swing.JSeparator

- Packages that use JSeparator
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  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.
  javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated.

- - ### Uses of JSeparator in javax.swing

    Subclasses of JSeparator in javax.swing
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `JPopupMenu.Separator` A popup menu-specific separator.
    `static class` | `JToolBar.Separator` A toolbar-specific separator.

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

    Methods in javax.swing.plaf.basic with parameters of type JSeparator
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | BasicToolBarSeparatorUI.`installDefaults(JSeparator s)`
    `protected void` | BasicSeparatorUI.`installDefaults(JSeparator s)`
    `protected void` | BasicSeparatorUI.`installListeners(JSeparator s)`
    `protected void` | BasicSeparatorUI.`uninstallDefaults(JSeparator s)`
    `protected void` | BasicSeparatorUI.`uninstallListeners(JSeparator s)`

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

    Methods in javax.swing.plaf.metal with parameters of type JSeparator
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | MetalSeparatorUI.`installDefaults(JSeparator s)`

  - ### Uses of JSeparator in javax.swing.plaf.synth

    Methods in javax.swing.plaf.synth with parameters of type JSeparator
    Modifier and Type | Method and Description
    --- | ---
    `void` | SynthSeparatorUI.`installDefaults(JSeparator c)` Installs default setting.
    `void` | SynthSeparatorUI.`installListeners(JSeparator c)` Installs listeners.
    `void` | SynthSeparatorUI.`uninstallDefaults(JSeparator c)` Uninstalls default setting.
    `void` | SynthSeparatorUI.`uninstallListeners(JSeparator c)` Uninstalls listeners.

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.