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: 4245061
Votes 0
Synopsis In Win32, AWTEventListener missed KEY_TYPED event for swing component.
Category java:classes_swing
Reported Against 1.2
Release Fixed
State 11-Closed, duplicate of 4186905, bug
Priority: 2-High
Related Bugs 4186905
Submit Date 09-JUN-1999
Description
JDK Version: jdk1.2, jdk1.2.2
OS: Win98
Locale: zh, C

JDK1.2 provides a scheme, AWTEventListener, to catch awt event that been 
dispatched to system event queue. In win32 platform, if the gui component
is swing, such as, JTextArea, the KEY_TYPED key event will be missed by
AWTEventListener, so the event record tool based on this rule will lose
KEY_TYPED event on swing components.
Attahced is two short programs, one is to awt, the other is to swing.
In them, we implement AWTEventListener, and add it to monitor system 
event dispatching, we got the following results:

o In Solaris 2.6 platform:
For awt, if we type 'a' once in TextArea, we got one KEY_PRESSED 
KeyEvent and one KEY_TYPED KeyEvent. 

For swing, if we typed 'a' once in JTextArea, we got two KEY_PRESSED
KeyEvents and one KEY_TYPED KeyEvent.

o In Win98 platform:
For awt, if we type 'a' once in TextArea, we got one KEY_PRESSED 
KeyEvent and one KEY_TYPED KeyEvent.

For swing, if we typed 'a' once in JTextArea, we only got two 
KEY_PRESSED KeyEvents, no KEY_TYPED KeyEvent was catched.


  xxxxx@xxxxx   1999-06-09
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang