JDK-6183877 : typeAhead characters are not always processed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2004-10-25
  • Updated: 2011-02-16
  • Resolved: 2005-09-17
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.
JDK 6
6 b53Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The problem happens in NetBeans IDE, but just on 1.5, so it is believe it is a general problem of the implementation.

It has been reported as a bug
http://www.netbeans.org/issues/show_bug.cgi?id=50423
follow the link to get more details.

I saw the same problem also with other dialogs (e.g. the New File
wizard). In most cases, it was reproduced on a remotely connected
Linux desktop, but it was reproduced also on a local desktop.

The symptoms are exactly the same as the symptoms of JDK bug #5097241
- "None of the comps in FileDlg receive keyevents on Solaris9 (CDE)
with XToolkit" (see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5097241).


I succeed with debugging the problem. It seems to be caused by code that is designed to delay keystrokes until a component is focused probably to prevent keystrokes to be delivered to wrong window (as far as I know it is new to 1.5). Sometimes the code gets confused, probably by the dialog not receiving focus. 
 
Here is a snapshot from my debugging session at the moment when a typed key is being processed (and is refused):
http://www.netbeans.org/issues/showattachment.cgi?attach_id=18475
###@###.### 10/25/04 16:13 GMT

Comments
EVALUATION Still trying to reproduce the bug, but vainly yet. ###@###.### 2005-05-05 08:13:41 GMT Was able to reproduce on Suse 9.2+Gnome remotely with Xnest. Reproduced always on dialog New Watch by selecting it in the Run menu with space. Not reproduced when selecting the dialog with mouse. ###@###.### 2005-05-06 10:48:43 GMT
25-10-2004

WORK AROUND Just switch to another application and back - but it is really hard to find. I noticed this after suffering for few weeks when I tried to debug the problem. ###@###.### 10/25/04 16:13 GMT
25-10-2004