Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

Tab Key doesn't work in JDK 1.4 applets

0 vue
Accéder directement au premier message non lu

Dan Dubinsky

non lue,
23 avr. 2003, 11:55:2623/04/2003
à
I have an applet with a bunch of Swing components in it. In JDK 1.3 the tab
key properly sets focus to the next field. In JDK 1.4 when running in a
JFrame as an application it also works fine. But in JDK 1.4 in an applet
container it doesn't work. Nothing happens when you press the tab or
shift-tab key. I looked on Sun's site and found that this is a bug: 4816074.
Anybody know a work around for it? I really need to use both applets and JDK
1.4 and have the tab key work.

Marko Müller

non lue,
25 avr. 2003, 07:52:4825/04/2003
à
"Dan Dubinsky" <ddub...@optonline.net> wrote in message news:<OHypa.96047$MB4.35...@news4.srv.hcvlny.cv.net>...

Few weeks ago I had the same problem.
Use the method "setFocusTraversalKeysEnabled(false)"
on your fields. Then these fields could catch
the tab keyEvent. But then you have to set the focus
by yourself.

0 nouveau message