Submitted On 01-JUL-2002
Instantiating an instance of DefaultKeyboardFocusManager
(yourDefaultKeyboardFocusManager); fixes this bug.
Otherwise I have found no focus calls to work including
requestFocus or requestFocusInWindow.
Submitted On 29-OCT-2002
It still does not work!!!
I just installed 1.4.1_01, all my JApplet loaded on IE6.0
(window2000 server) can not use TAB to move from one
component to component. Only when I
1. set contentPane.setFocusCycleRoot(true)
2. specify each component with component.setFocusable
then the TAB will work on jumping.
But I have too many component to make it work properly. Is
there any easier work-arounds to use JApplet?
Submitted On 11-DEC-2002
None of the solutions provided seem to work except
JessicaChenXJ's. As s/he said, we have too many components
to setFocusable. What is the final solution suggested? Or is
there one except setFocusable method? We are having hard
times convincing our client that this will be fixed soon.
Submitted On 23-JAN-2003
As I found out that when I used the plugin with the show console option, the focus traversal worked fine.
But when I changed this option to hide or don't start up, the focus traversal failed to work.
So I tried to find out what the differences where. I found this. When the show console option
is selected, the parent frame (provided by the browser) has a focus traversal policy named:
With both the other options this was the java.awt.DefaultFocusTraversalPolicy.
This code will set the DefaultFocusTraversalPolicy to the javax.swing.LayoutFocusTraversalPolicy.
After this everything works normal.
Place this in the start of the init () method of JApplet
Container parent = this.getParent ();
while (!(parent instanceof Window) && parent != null)
parent= parent.getParent ();
if (parent != null)
parent.setFocusTraversalPolicy (new javax.swing.LayoutFocusTraversalPolicy ());
PLEASE NOTE: JDK6 is formerly known as Project Mustang