Uses of Class javax.swing.border.AbstractBorder (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
javax.swing.border.AbstractBorder

- Packages that use AbstractBorder
  Package | Description
  --- | ---
  javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component.
  javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  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 AbstractBorder in javax.swing.border

    Subclasses of AbstractBorder in javax.swing.border
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BevelBorder` A class which implements a simple two-line bevel border.
    `class` | `CompoundBorder` A composite Border class used to compose two Border objects into a single border by nesting an inside Border object within the insets of an outside Border object.
    `class` | `EmptyBorder` A class which provides an empty, transparent border which takes up space but does no drawing.
    `class` | `EtchedBorder` A class which implements a simple etched border which can either be etched-in or etched-out.
    `class` | `LineBorder` A class which implements a line border of arbitrary thickness and of a single color.
    `class` | `MatteBorder` A class which provides a matte-like border of either a solid color or a tiled icon.
    `class` | `SoftBevelBorder` A class which implements a raised or lowered bevel with softened corners.
    `class` | `StrokeBorder` A class which implements a border of an arbitrary stroke.
    `class` | `TitledBorder` A class which implements an arbitrary border with the addition of a String title in a specified position and justification.

  - ### Uses of AbstractBorder in javax.swing.plaf

    Subclasses of AbstractBorder in javax.swing.plaf
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BorderUIResource.BevelBorderUIResource`
    `static class` | `BorderUIResource.CompoundBorderUIResource`
    `static class` | `BorderUIResource.EmptyBorderUIResource`
    `static class` | `BorderUIResource.EtchedBorderUIResource`
    `static class` | `BorderUIResource.LineBorderUIResource`
    `static class` | `BorderUIResource.MatteBorderUIResource`
    `static class` | `BorderUIResource.TitledBorderUIResource`

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

    Subclasses of AbstractBorder in javax.swing.plaf.basic
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BasicBorders.ButtonBorder`
    `static class` | `BasicBorders.FieldBorder`
    `static class` | `BasicBorders.MarginBorder`
    `static class` | `BasicBorders.MenuBarBorder`
    `static class` | `BasicBorders.RadioButtonBorder`
    `static class` | `BasicBorders.RolloverButtonBorder` Special thin border for rollover toolbar buttons.
    `static class` | `BasicBorders.ToggleButtonBorder`

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

    Subclasses of AbstractBorder in javax.swing.plaf.metal
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `MetalBorders.ButtonBorder`
    `static class` | `MetalBorders.Flush3DBorder`
    `static class` | `MetalBorders.InternalFrameBorder`
    `static class` | `MetalBorders.MenuBarBorder`
    `static class` | `MetalBorders.MenuItemBorder`
    `static class` | `MetalBorders.OptionDialogBorder`
    `static class` | `MetalBorders.PaletteBorder` Border for a Palette.
    `static class` | `MetalBorders.PopupMenuBorder`
    `static class` | `MetalBorders.RolloverButtonBorder`
    `static class` | `MetalBorders.ScrollPaneBorder`
    `static class` | `MetalBorders.TableHeaderBorder` Border for a Table Header
    `static class` | `MetalBorders.TextFieldBorder`
    `static class` | `MetalBorders.ToggleButtonBorder`
    `static class` | `MetalBorders.ToolBarBorder`

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.