| 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. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BevelBorderA class which implements a simple two-line bevel border. | |
| class  | CompoundBorderA 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  | EmptyBorderA class which provides an empty, transparent border which
 takes up space but does no drawing. | |
| class  | EtchedBorderA class which implements a simple etched border which can
 either be etched-in or etched-out. | |
| class  | LineBorderA class which implements a line border of arbitrary thickness
 and of a single color. | |
| class  | MatteBorderA class which provides a matte-like border of either a solid color
 or a tiled icon. | |
| class  | SoftBevelBorderA class which implements a raised or lowered bevel with
 softened corners. | |
| class  | StrokeBorderA class which implements a border of an arbitrary stroke. | |
| class  | TitledBorderA class which implements an arbitrary border
 with the addition of a String title in a
 specified position and justification. | 
| Modifier and Type | Class | 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 | 
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | BasicBorders.ButtonBorder | |
| static class  | BasicBorders.FieldBorder | |
| static class  | BasicBorders.MarginBorder | |
| static class  | BasicBorders.MenuBarBorder | |
| static class  | BasicBorders.RadioButtonBorder | |
| static class  | BasicBorders.RolloverButtonBorderSpecial thin border for rollover toolbar buttons. | |
| static class  | BasicBorders.ToggleButtonBorder | 
| Modifier and Type | Class | 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.PaletteBorderBorder for a Palette. | |
| static class  | MetalBorders.PopupMenuBorder | |
| static class  | MetalBorders.RolloverButtonBorder | |
| static class  | MetalBorders.ScrollPaneBorder | |
| static class  | MetalBorders.TableHeaderBorderBorder 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.