Field validation with Tab Key

I am writing an application in which I must validate the data a user enters into a textfield when the user presses the "Tab" key. I have added a KeyListener to the textfield and when this java code is run as an applet the KeyListener catches the Tab key and all works fine. When I run this as an application, the Tab key does not seem to be caught at all by the Key Listener.

Has anybody else had this problem on the IPAQ, if so, do you know a solution.

Any help would be GREATLY appreciated.

[518 byte] By [kpoindexter] at [2007-9-26 6:26:35]
# 1

This seems to be related to the JRE being used.

Under the Sun PersonalJava beta, the tab key is caught correctly using the keyPressed event.

Under Jeode, the TAB key is not caught in the keyPressed or keyTyped event, only in the keyReleased event.

Sucks that things dont work the same from vendor to vendor.

kpoindexter at 2007-7-1 15:30:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

FYI- Also figured out that under JDK1.4 this does not work either. KeyPressed is not fired for a Tab key. The KeyReleased is, but not KeyPressed and KeyTyped.

Anybody got any ideas why this might work under one JRE but not under andother. I see no mention of this in the bug database anywhere.

kpoindexter at 2007-7-1 15:30:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

I've been having this problem as well. I have created my applet using Visual Cafe 3 (Java 1.1). When I run this in Jeode it work great, Personal java works great, MSVM works great, but when I try to run using Sun Plugin 1.4.2_02 the tab key events are never fired.

Does anybody have a solution for this? Unfortunately, we are stuck developing with an older version of Java because of Visual Cafe.

kpoindexter at 2007-7-1 15:30:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

I've been having this problem as well. I have created my applet using Visual Cafe 3 (Java 1.1). When I run this in Jeode it work great, Personal java works great, MSVM works great, but when I try to run using Sun Plugin 1.4.2_02 the tab key events are never fired.

Does anybody have a solution for this? Unfortunately, we are stuck developing with an older version of Java because of Visual Cafe.

kpoindexter at 2007-7-1 15:30:48 > top of Java-index,Java Mobility Forums,Java ME Technologies...