Keyboard focus problem with Swing components inside SWT
843805Dec 22 2006 — edited Jan 29 2007We have an application built in Swing that runs inside Eclipse using the AWT_SWT embedded frame. We just recently upgraded to Sun JDK 1.5.0_10 from 1.4.2_05, and now we find that all focus requests are rejected to these components. Stepping through the code in Component we can see that the peer's requestFocus method is returning false, and then "Fail 4" is being logged.
Unfortunately I don't have access to the peer source code, so I can't determine why this is failing. Can anyone either (a) provide the source code for that one file, or (b) suggest to me why a peer might reject a focus request. Is there something new I should be doing in Java 5 to ensure that a peer is ready to accept a focus request. Is this a known problem with Java 5?
I really appreciate any help you can offer me, because this is a big usability problem for us, and a serious regression in our product.
Thanks,
- Andy