changeset 3244:602dfe45c227

6999033: Methods BorderFactory.createSoftBevelBorder() don't return SoftBevelBorder instances Reviewed-by: alexp
author malenkov
date Mon, 29 Nov 2010 20:38:14 +0300
parents 562d25d284e9
children 3d92a0fbf5cb
files src/share/classes/javax/swing/BorderFactory.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/BorderFactory.java	Mon Nov 29 16:11:40 2010 +0300
+++ b/src/share/classes/javax/swing/BorderFactory.java	Mon Nov 29 20:38:14 2010 +0300
@@ -273,7 +273,7 @@
      * @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 @@
      * @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 ///////////////////////////////////////////////////////////