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 56596 - Ctrl-Tab gets confused on JDK 1.6
Summary: Ctrl-Tab gets confused on JDK 1.6
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2005-03-17 12:30 UTC by Jan Chalupa
Modified: 2008-12-22 18:11 UTC (History)
1 user (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 Jan Chalupa 2005-03-17 12:30:30 UTC
[custom build of 2005-03-16 trunk; JDK 1.6 b24]

Fast switching of editor panes (Ctrl-Tab) appears to be broken on JDK 1.6. A
single fast Ctrl-Tab seems to work (switches to the previous document), but
after the document list appears, it gets confused. Subsequent Tab presses don't
cycle the item in the list and sometimes, after Ctrl is release the list doesn't
disappear. Other times it seems to work, but the behavior is mostly unpredictable.

Looks like a focus or timing problem.
Comment 1 Jan Chalupa 2005-03-17 12:55:24 UTC
Also reproducible with 1.6 b27.
Comment 2 Jan Chalupa 2005-03-17 14:41:24 UTC
A report from a user who originally reported this problem:

> Here's what happens (on XP):
> 
> . Click ctrl-tab
> . Switcher (not sure what you call this) comes up.
> . If I hit ctrl-tab again nothing happens, arrow keys don't work either, 
> clicking on switcher doesn't result in anything happening, escape does 
> nothing.  Netbeans window is no longer active.
> . If I click back on Netbeans window I no longer see the switcher, but 
> keyboard interaction is blocked (this part sounds similar to 54585).
> . If I drag the netbeans window down I can see the switcher is still up. 
>  If I click on it, then hit escape all is well.
Comment 3 Martin Krauskopf 2005-03-22 16:23:03 UTC
Ok, I've found some not so clear things in the code. I hope it will help to JDK
1.6 related problems as well.

Started....
Comment 4 Martin Krauskopf 2005-03-23 10:57:26 UTC
I fixed some another strange behaviour but it didn't help. After some
examination I found out the problem is only windows specific (+JDK 1.6).
Continuing....

core/windows/src/org/netbeans/core/windows/view/ui/KeyboardPopupSwitcher.java;
new revision: 1.10; previous revision: 1.9
Comment 5 Martin Krauskopf 2005-03-23 19:51:02 UTC
Fixed. Popup doesn't have parent (forgotten when fixing ButtonSwitcher).

core/windows/src/org/netbeans/core/windows/view/ui/KeyboardPopupSwitcher.java
new revision: 1.11; previous revision: 1.10
Comment 6 Jan Chalupa 2005-03-24 05:51:40 UTC
Seems to work fine now with 1.6 b27. Thanks.