-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b56
-
x86
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2223196 | 7u40 | Leonid Romanov | P3 | Resolved | Fixed | b12 |
Mac OS X 10.7.3 macmini4,1
Run the attached application creating JFrame, JButton and JList. It has a custom keyboard focus manager and a key dispatcher. Once the frame is shown, we request focus for the button (it will paint its outline as if focused) and press a key. Key event dispatcher reports everything properly.
So far so good. Now run the same application with Frame, Button and List. Button still paints outline as if focused but no key events come to the KED. Even if we click the Button, it doesn't help. Events start going only after we click the List and Button again.
Run the attached application creating JFrame, JButton and JList. It has a custom keyboard focus manager and a key dispatcher. Once the frame is shown, we request focus for the button (it will paint its outline as if focused) and press a key. Key event dispatcher reports everything properly.
So far so good. Now run the same application with Frame, Button and List. Button still paints outline as if focused but no key events come to the KED. Even if we click the Button, it doesn't help. Events start going only after we click the List and Button again.
- backported by
-
JDK-2223196 [macosx] Situation when KeyEventDispatcher doesn't work on AWT but does on Swing.
-
- Resolved
-