Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4664885
Votes 0
Synopsis JCK1.4,interactive: api/javax_swing/interactive/BorderFactoryTests.html#BorderFa
Category java:classes_swing
Reported Against 1.4 , hopper , mantis
Release Fixed 1.5(tiger)
State 10-Fix Delivered, Verified, bug
Priority: 3-Medium
Related Bugs 4668513 , 4807438
Submit Date 09-APR-2002
Description
.See 4668513 for a clear description of the problem. The fix to this bug should be a doc change.
 xxxxx@xxxxx  2003-01-27


Original description:
---------------------




Filed By       : J2SE-SQA [j2se-tck- xxxxx@xxxxx ]
JDK            : jdk1.4.1-b07
JCK            : jck1.4-b17
Platform[s]    : Windows 2000 pro
switch/Mode    : -client -Xmixed -Xfuture
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
api/javax_swing/interactive/BorderFactoryTests.html#BorderFactory
[BorderFactoryTest0003]
 
Shadow borders created with BorderFactory.createBevelBorder(raisedInt,
Color.WHITE, Color.BLACK, Color.red, Color.blue)
interchange their shadowInner and shadowOuter colors depending whether
they are raised or not. 
 
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/BorderFactoryTests.java
 
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/hopper/b07/jck14/win32/win2000_client_linux-2/workDir/api/javax_swing/BorderFactoryTests_BorderFactory.jtr

How to reproduce:
=================
Run the following script (you may need to change JCK and JDK variables)
 
The test window appears and you are provided with instructions to
complete the test.
Notice that 
when the "Raised" checkbox is checked then 
   shadowInner=blue and shadowOuter=red 
while when the "Raised" checkbox is NOT checked 
then
   shadowInner=red and shadowOuter=blue. 

highlightInner and highlightOuter are treated correctly.

--- script start ---
#!/bin/sh

# change variables as needed

JCK="c:/jck1.4/JCK-runtime-14"
JDK="c:/jdk1.4.1"
switches="-client -Xmixed -Xfuture"
CLASSPATH="${JCK}/classes:${JCK}/javatest.jar"

$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.swing.interactive.BorderFactory.BorderFactoryTests
-TestCaseID BorderFactoryTest0003 -TestDirURL file:///${JCK}/tests/api/javax_swing/interactive/BorderFactoryTests.html#BorderFactory 
 
--- script end ---

Test output:
============

BorderFactoryTest0003: Failed.
BorderFactorycreateBevelBorder(type,highlightOuter,highlightInner,shadowOuter,shadowInner)
does not work as expected.

STATUS:Failed.tests: 1; failed: 1; first test case failure:
BorderFactoryTest0003


Specific Machine Info:
======================
Hostname: linux-2
OS: Windows 2000 pro



======================================================================
Work Around
N/A
Evaluation
Will be fixed for hopper.
 xxxxx@xxxxx  2002-04-10

We should update javadoc as appropriate.
 xxxxx@xxxxx  2002-04-29

Exclusion has been granted for this, will fix for tiger.
 xxxxx@xxxxx  2002-05-06

For a lowered bevel border, the inner and outer shadow colors appear switched. I've done much testing and determined that this is what is wanted - it is how the colors should be treated for the best visual results. However, it means the documentation is misleading. We should add documentation stating how the colors may be switched depending on the effect. Changes will be made to both BevelBorder.java and BorderFactory.java (for the createBeveledBorder method).

Note that this is not a regression. Behavior has been this way for a long time.

Also,  xxxxx@xxxxx  owns a bug that is a duplicate of this one (4668513). Will close that one as a duplicate and re-assign this one to her.
 xxxxx@xxxxx  2003-01-27

Shannon reviewed the changes.  Approved by CCC.  Fixed for tiger.
 xxxxx@xxxxx  2003-08-29
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang