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: 6772137
Votes 2
Synopsis D3D: Dragging the scroll bar of a JScrollPane containing a JTree causes incorrect red
Category java:classes_2d
Reported Against
Release Fixed 7(b43), 6u12(b03) (Bug ID:2170469)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 17-NOV-2008
Description
FULL PRODUCT VERSION :
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
 customer  Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
If there is a JTree in a JScrollPane, dragging the vertical scroll bar causes the node icons and labels to be redrawn incorrectly (they change colour and almost disappear in some cases)

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached code. Drag the scrollbar down

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Nodes should scroll with no artefacts
ACTUAL -
Node icons and labels change colour

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.util.*;

/**
 * Test case for redraw bug in JTree in 6.0u10
 *
 * Dragging the scroll bar of a JScrollPane containing a JTree causes incorrect redraw
 * of JTree nodes - icons and labels change colour and grow faint.
 *
 * HTML for IE:
 *   <html>
 *     <body>
 *       < customer  classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100%" height="100%">
 *         <param name="java_code" value="JTreeRedraw.class">
 *         <param name="type" value="application/x-java-applet;version=1.4">
 *       </ customer >
 *     </body>
 *   </html>
 */
public class JTreeRedraw extends JApplet {

    private class TestPanel extends JPanel {

        public TestPanel() {
            Vector<String> v = new Vector<String>();
            for (int i = 0; i < 100; ++i)
                v.add("Node " + i);

            JTree       t  = new JTree(v);
            JScrollPane sp = new JScrollPane(t);

            add(sp);
        }
    }

    public void init() {
        SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    getContentPane().add(new TestPanel());
                }
            });
    }
}


---------- END SOURCE ----------
Posted Date : 2008-11-17 06:39:31.0
Work Around
N/A
Evaluation
I can't reproduce this on my system (XP SP3, IE7, Nvidia board).

Need more information about the configuration.
Please run any java app from the console, with this env. variable
set:
  J2D_TRACE_LEVEL=4 
and provide the output.

Also, please make sure that you have the latest video drivers. If updating
the drivers helped, please let us now the driver version which
helped (can be obtained with the same J2D_TRACE_LEVEL env. variable).
But please save the version of the driver that didnt' work as prior
to updating.
Posted Date : 2008-11-19 19:25:12.0

Closing the report as the submitter has confirmed upgrading the video driver has resolved this problem.
Posted Date : 2008-11-24 06:32:16.0

Re-opening to address issues with older device drivers.
Posted Date : 2008-11-26 02:51:11.0

Need to block drivers earlier than 6,14,10,9381 .

Given the number of issues with Quadro FX line with older drivers we should
consider limiting the driver version for whole line.
Posted Date : 2008-12-05 22:37:22.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang