JaVa
   

Where's My Tab Key?

Because the Tab key is used to transfer focus from one component to another, it is consumed by components interested in handling such a process and is therefore not passed on as a key event for us to then handle. We can stop this by calling the following method on our JFrame or JApplet objects, however, which will then allow Tab key events to reach us.

setFocusTraversalKeysEnabled(false);


JaVa
   
Comments