This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51826 - Right Arrow does not work to expand trees the first time under JDK 1.6
Summary: Right Arrow does not work to expand trees the first time under JDK 1.6
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: JDK_SPECIFIC
: 58277 63099 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-24 21:56 UTC by Jesse Glick
Modified: 2008-12-22 23:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-11-24 21:56:37 UTC
041124 custom, JDK 1.6 b13. Expanding Explorer
trees using the Right Arrow key does not do
anything the first time; sometimes it works if you
press Right Arrow again, sometimes not. Try it by
just starting IDE on a fresh user dir, then open
the Favorites tab and try expanding various
folders in ~ using the keyboard. On JDK 1.5.0 it
works fine in all cases. On 1.6 b13 it does not
work reliably.

Presumably a JDK bug, but need to isolate where
the problem is and file a more specific bug.
SwingSet2 does not seem to have this problem.
Comment 1 Petr Nejedly 2005-02-04 11:17:13 UTC
I've seen it under 1.6. I have no idea what's wrong, but I'll try to
analyze it later.
Comment 2 Jan Chalupa 2005-02-25 18:15:26 UTC
Still reproducible with JDK 1.6 b24 on Win XP. We'd better investigate
this and file a bug against JDK soon if needed.
Comment 3 Petr Nejedly 2005-02-28 16:01:00 UTC
OK, I'll try to analyze it asap.
Comment 4 Petr Nejedly 2005-03-01 13:51:48 UTC
It is caused by a change in JDK.
In BasicTreeUI, there is added a check for children count before
trying to expand a non-leaf node, which is IMO wrong.
It doesn't work for us because we have lazy model and each previously
unexpanded node has initially no leaves (although correctly reports it
is not leaf itself).

I'll file JDK issue for it.
Comment 5 Petr Nejedly 2005-03-01 14:05:46 UTC
Submitted as JDK issue 6234299.
Comment 6 Petr Nejedly 2005-04-26 15:13:03 UTC
*** Issue 58277 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Danek 2005-07-14 16:58:21 UTC
verif.
Comment 8 Jesse Glick 2005-08-26 10:32:33 UTC
*** Issue 63099 has been marked as a duplicate of this issue. ***