bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/24218] New: JTree scrollPathToVisible() broken


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug swing/24218] New: JTree scrollPathToVisible() broken
Date: 5 Oct 2005 18:58:35 -0000

As promised, here comes the next JTree bug report, closely based on 
my testcase for PR24214. The program first creates a JTree inside
a JScrollPane inside a JFrame. It also creates a tree with the
user-specified depth and number-of-nodes per depth, and displays
the tree inside the JTree. This basically works (if slowly) in 
current classpath cvs head.

The program then proceeds to randomly select a tree node and calls
scrollPathToVisible to make the newly selected node visible. (This
method is important to provide user-feedback about the selected node
when the tree in question has more than a few nodes.)This also makes
for a nice animation...


Compile and run the testcase, and specify the number of nodes per 
level of the tree. For example:

jamvm 2 3 4       - three levels with 2*3*4 nodes total
jamvm 5 5 5 5     - four levels with 5 nodes each, 5*5*5*5 nodes total
...

1) in classpath (cvs head 2005.10.05), this seems to do nothing at all;
   the tree stays collapsed. It is hard to tell whether the correct
   tree node gets selected, because later manual (mouse-clicks) operations
   on the tree change the selection.

2) Run JDK 1.5.0 to see the reference implementation at work: looks fine.

3) Run JDK 1.4.2 to see an example of how this is *NOT* supposed to work.
   On my system, the JTree survives the first few iterations, but becomes
   garbled after some time :-)


-- 
           Summary: JTree scrollPathToVisible() broken
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24218





reply via email to

[Prev in Thread] Current Thread [Next in Thread]