JDK-4515373 : JCK14 2 api/javax_swing/interactive/JColorChooserTests.html#JColorChooser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: x86,sparc
  • Submitted: 2001-10-16
  • Updated: 2001-11-13
  • Resolved: 2001-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 rc1Fixed
Related Reports
Relates :  
Description
The Color on the left of the slider didn't change after selecting the color for the second time using HSB tab.


JDK            : 1.4.0-beta-b83
JCK            : jck1.4-b11
Platform[s]    : Solaris Sparc/Intel
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test   : 

 api/javax_swing/interactive/JColorChooserTests.html#JColorChooser 

JColorChooserTest0001:
JColorChooserTest0002:

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/javax_swing/interactive/JColorChooserTests.java

jtr file location:
==================

file:///net/jtgb4u4c/export/sail16/results/merlin/b83/jck14/sparc/s6_client_jtg-s114/workDir/api-interactive/javax_swing/interactive/JColorChooserTests_JColorChooser.jtr


How to reproduce:
====================
run the attached script.
    Color.ksh

    1) click "Show color Chooser".
    2) click "HSB" tab.
    3) select any color using the slider"   
    4) press Done.
    5) repeate step 1.


--------Script START---------------------
#!/bin/ksh
SWITCH=${1+$@}
JDK=/net/jdk/export/disk8/local.java/jdk1.4.0
#JDK=/net/jdk/export/disk6/promoted/jdk/1.4/beta3/b81/binaries
TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
JCK=${TESTBASE}/JCK-runtime-14
executeClass="javasoft.sqe.tests.api.javax.swing.interactive.JColorChooser.JColorChooserTests"
excludeCmd=""
executeClassArgs="-TestCaseID JColorChooserTest0001 JColorChooserTest0002"
executeTestURL=""
headless=
executeContextArgs=
case `uname -s` in
  SunOS)
   ARCH=`uname -p`
   case $ARCH in
    sparc)
      sharedJDK=$JDK/solsparc
      ;;
    i386)
      sharedJDK=$JDK/solx86
      ;;
   esac
   ;;
  Linux)
   sharedJDK=$JDK/linux-i386
   ARCH=linux
   ;;
esac


CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}

if `echo $SWITCH|grep "\-d64" >/dev/null`; then
  LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
  LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi


PATH=$JDK/bin:$sharedJDK/bin:$PATH

export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH


echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 1 )) do
echo testing $x

java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd}  ${executeClassArgs} ${executeContextArgs} ${executeTestURL} 
(( x = $x + 1 ))
done



--------Script END----------------------

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


Specific Machine Info:
=====================
SunOS jtg-s114 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-2
SunOS jtg-i108 5.8 Generic i86pc i386 i86pc




###@###.### 2001-10-16

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-rc1 FIXED IN: merlin-rc1 INTEGRATED IN: merlin-rc1 VERIFIED IN: merlin-rc1
14-06-2004

EVALUATION This is caused by the fix to bug 4177735. The test case is re-adding the colorchooser to the frame each time it is shown, and the colorchooser is reacting to an ancestor event and killing the update thread (in DefaultHSBChooserPanel). The thread is not restarted when the panel is added to the dialog, because the ancestor event is fired before the dialog is shown. Now listens for Hierarchy events instead, paying attention to the SHOWING_CHANGED flag. The image producer thread is only running when the HSB tab of the color chooser is shown. ###@###.### 2001-10-23
23-10-2001