#48 Failed to input using JDK 1.7.0

closed
nobody
None
5
2012-09-23
2011-09-03
Anonymous
No

Java version: JDK 1.7.0
OS: Windows XP

When I browse some big page which will cause scroll bar appear via JWebBrowser component, I can not input any words in the JTextField component despite the JTextField component get focused. (snapshot: http://www.blogjava.net/images/blogjava_net/BlueSUN/14708/o_groovyhelp3.1.0_05.png)

It works fine using JDK 1.6.0.

Please have a look at this issue.

Thanks in advance!

Discussion

  • Hi,

    I made a fix. There are still ways to get a duplicate caret (in the native component and a JTextField) but the last component clicked is the one to receive inputs.

    Could you try this latest 1.0.2 preview (DJNativeSwing-SWT-1-0-2-20110904.zip) and report any issues you find? It would be great if you could confirm that no side effects were introduced, so if you can perform this test on other OS too (Mac/Linux) and eventually other Java versions, it would really help.

    Note that all this focus handling would be much easier if SWT were to find a solution to that bug:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=84532
    Feel free to vote to encourage them to work on it.

    Cheers,
    -Christopher