Relates :
|
|
Relates :
|
|
Relates :
|
J2SE Version (please include all output from java -version flag): java version "1.6.0-beta2" Java(TM) SE Runtime Environment (build 1.6.0-beta2-b82) Java HotSpot(TM) Client VM (build 1.6.0-beta2-b82, mixed mode, sharing) Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one) Yes Operating System Configuration Information (be specific): Windows XP Professional SP2 Hardware Configuration Information (be specific): Intel Pentium III, 730 Mhz, 384 Mb RAM Bug Description: A JPanel contains a window listener that uses the Robot to fire a mouse release event when the window is deactivated. The Robot fires a mouse release event and a (spurious) mouse click event. Steps to Reproduce (be specific): Compile and run the attached program. Place the mouse pointer in its window. Then press alt-tab to change the active window. The result is: ...... keypress keyrelease windowDeactivated released: 117 159 1 clicked: 117 159 1 J2SE Version (please include all output from java -version flag): java version "1.6.0-beta2" Java(TM) SE Runtime Environment (build 1.6.0-beta2-b82) Java HotSpot(TM) Client VM (build 1.6.0-beta2-b82, mixed mode, sharing) Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one) yes Operating System Configuration Information (be specific): Windows XP Professional SP2 Hardware Configuration Information (be specific): Intel Pentium III, 730 Mhz, 384 Mb RAM Bug Description: An empty JFrame is created, and a key listener added to it. When asked if it is focusable, it retuns true, when asked if it holds the focus it returns false. However, it receives key events. It returns false also if it is explicitly told to own the focus. Steps to Reproduce (be specific): Compile and run the attached program. When its window appears, hit a key (e.g. "a"). This is the output: W:\borsotti\jtest>java Focus focus: false true key typedjava.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x 0,keyChar='a',keyLocation=KEY_LOCATION_UNKNOWN]
|