Input-Bug in JMEDesktop (ALT-TAB)

Hi everyone,

I mentioned the issue in this a bit outdated GUI-thread but i’m now certain it is a JMEDesktop bug.



Description:

When you use a JMEDesktop (or JMEDesktopState) and have a JTextField in it, leave your running application with ALT-TAB and return to it all JTextFields no longer accept any keyboard input. Mouse input is not concerned (you can still click buttons, focus the text fields).

Reproducability:

Always. Start TestJMEDesktop, type something in a TextField, ALT-TAB, ALT-TAB, try typing again.

System(s):

Windows - maybe someone can test this in OSX and KDE etc

I tried on Vista and XP. I just updated to LWJGL 1.1.4 and the problem persists.



I wanted to leave this open to discussion before I add it to the tracker.

Can you try to fix it by calling JMEDesktop.setFocusOwner, please.

i can't reproduce that problem on win xp with java 1.6_05

irrisor said:
Can you try to fix it by calling JMEDesktop.setFocusOwner, please.

setFocusOwner does nothing to fix this. I assume that it does the same as clicking with the mouse on the component and that does not help. I tried within the JME Test Classes.
Core-Dump said:

i can't reproduce that problem on win xp with java 1.6_05

me too :|

Ditto (cant reproduce) using JDK 1.5.0_12

If you want to post a little demo app I can try it on ubuntu with 1.6

I just made sure that im not fooling myself somehow. I can reproduce this every time with the jmetest.awt.swingui.TestJMEDesktop from the CVS (checked out right now) and Vista with Java 1.6.0_04.


unfair said:

If you want to post a little demo app I can try it on ubuntu with 1.6

If you could just try it with the TestJMEDesktop inside the JME distro. I dont know whats the equivalent of windows ALT-TAB on ubuntu :)

Alt-tab is the equivalent of alt-tab in ubuntu :stuck_out_tongue:



I wasn't able to alt-tab until i switched to the system cursor, once I did that I alt tabbed out, and when i alt-tabbed back into the program and clicked on a textbox it would not let me type in it.

Couldn't reproduce it either…



cbratton@ICEQUBE:~$ java -version

java version "1.6.0_03"

Java™ SE Runtime Environment (build 1.6.0_03-b05)

Java HotSpot™ 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)