diff --git a/src/share/classes/javax/swing/BorderFactory.java b/src/share/classes/javax/swing/BorderFactory.java index e288d0bd4d8a3ed210e81a33929f21ff13b9c382..8da7dd9579ae4201c9bd5eab2e42bd6d24d41cbb 100644 --- a/src/share/classes/javax/swing/BorderFactory.java +++ b/src/share/classes/javax/swing/BorderFactory.java @@ -273,7 +273,7 @@ public class BorderFactory * @since 1.7 */ public static Border createSoftBevelBorder(int type, Color highlight, Color shadow) { - return new BevelBorder(type, highlight, shadow); + return new SoftBevelBorder(type, highlight, shadow); } /** @@ -295,7 +295,7 @@ public class BorderFactory * @since 1.7 */ public static Border createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { - return new BevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner); + return new SoftBevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner); } //// EtchedBorder ///////////////////////////////////////////////////////////