TextEditor Cursor


In my plugin you can open a window, to rename something. So in the window is a TextEditor. 

My Question is, if there is a way, that on opening my window the focus is in the texteditor, so that I can write instantly? 

Any Idea? 



Do Component::toFront() and Component::grabKeyboardFocus() help? 


Also setExplicitFocusOrder(), setFocusContainer(), createFocusTraverser() etc.. There's plenty of ways to control focus behaviour!