Any ideas on how i can do this? I am enabling a JTextArea in another part of a program, so isFocusTraversable() should return true. Now i want to set the cursor from a Key Event but the only way i see how to do this is setting by setting an accelerator key.
Now the code below should work but it doesn't. Any other way i can do this? Thanks.
Code:
public void keyTyped(KeyEvent ke){
    if(screen1.isFocusTraversable()){
         screen1.setFocusAccelerator(ke.getKeyChar());
     }
   }