From 788a06b4a21deae96ed4b5ebd4b4d1e6a256780b Mon Sep 17 00:00:00 2001 From: malenkov Date: Mon, 31 Jan 2011 21:49:27 +0300 Subject: [PATCH] 6999045: DOC: Unclear spec for BevelBorder constructor and BorderFactory factory method (colors switching) Reviewed-by: alexp --- src/share/classes/javax/swing/BorderFactory.java | 3 --- src/share/classes/javax/swing/border/BevelBorder.java | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/share/classes/javax/swing/BorderFactory.java b/src/share/classes/javax/swing/BorderFactory.java index 8da7dd957..19b392ac1 100644 --- a/src/share/classes/javax/swing/BorderFactory.java +++ b/src/share/classes/javax/swing/BorderFactory.java @@ -159,9 +159,6 @@ public class BorderFactory * Creates a beveled border of the specified type, using * the specified colors for the inner and outer highlight * and shadow areas. - *

- * Note: The shadow inner and outer colors are - * switched for a lowered bevel border. * * @param type an integer specifying either * BevelBorder.LOWERED or diff --git a/src/share/classes/javax/swing/border/BevelBorder.java b/src/share/classes/javax/swing/border/BevelBorder.java index 564d316c4..bd041aece 100644 --- a/src/share/classes/javax/swing/border/BevelBorder.java +++ b/src/share/classes/javax/swing/border/BevelBorder.java @@ -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 @@ package javax.swing.border; 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 @@ public class BevelBorder extends AbstractBorder /** * Creates a bevel border with the specified type, highlight and * shadow colors. - *

- * 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 -- GitLab