changeset 3611:07bea0d4e454

6999045: DOC: Unclear spec for BevelBorder constructor and BorderFactory factory method (colors switching) Reviewed-by: alexp
author malenkov
date Mon, 31 Jan 2011 21:49:27 +0300
parents 020b4695370c
children cbcd461067c5
files src/share/classes/javax/swing/BorderFactory.java src/share/classes/javax/swing/border/BevelBorder.java
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/BorderFactory.java	Mon Jan 31 21:31:39 2011 +0300
+++ b/src/share/classes/javax/swing/BorderFactory.java	Mon Jan 31 21:49:27 2011 +0300
@@ -159,9 +159,6 @@
      * Creates a beveled border of the specified type, using
      * the specified colors for the inner and outer highlight
      * and shadow areas.
-     * <p>
-     * Note: The shadow inner and outer colors are
-     * switched for a lowered bevel border.
      *
      * @param type  an integer specifying either
      *          <code>BevelBorder.LOWERED</code> or
--- a/src/share/classes/javax/swing/border/BevelBorder.java	Mon Jan 31 21:31:39 2011 +0300
+++ b/src/share/classes/javax/swing/border/BevelBorder.java	Mon Jan 31 21:49:27 2011 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
 
 import java.awt.Graphics;
 import java.awt.Insets;
-import java.awt.Rectangle;
 import java.awt.Color;
 import java.awt.Component;
 import java.beans.ConstructorProperties;
@@ -82,9 +81,6 @@
     /**
      * Creates a bevel border with the specified type, highlight and
      * shadow colors.
-     * <p>
-     * Note: The shadow inner and outer colors are
-     * switched for a lowered bevel border.
      *
      * @param bevelType the type of bevel for the border
      * @param highlightOuterColor the color to use for the bevel outer highlight