# Borders

Other Swing Changes

> ## New BorderFactory Methods

> BorderFactory previously did not provide methods to create a raised etched border. It only provided a method to create a lowered border. To be consistent with the rest of the class the following methods have been added to BorderFactory:

> See:

> `
> - public static Border createEtchedBorder(int type)
> - public static Border createEtchedBorder(int type, Color highlight, Color shadow)
> `

> ## New LineBorder Constructor

> LineBorder allows for rounded corners. Unfortunately this property previously could not be set in anyway, short of subclassing. To allow developers to create LineBorders with rounded corners, a new constructor has been added.

> See:

> `
> - public LineBorder(Color color, int thickness, boolean roundedCorners)
> `

> ## Move MetalUtils.TableHeaderBorder into MetalBorders

> This border was inconsistently placed in the package private class plaf.metal.MetalUtils. Since it now needs to be public for access from the Proxy, it has been moved to javax.swing.plaf.metal.MetalBorders and made public:

> See:

> `
> - TableHeaderBorder
> `

Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: swing-feedback@java.sun.com. This is not a subscription list. | Java Software