focusing problems
Hi!
I have a ToolWindow containing a JTree with the current files PSI hierarchy.
When selecting a node, I focus back to the editor at the selected PSI
elements offset. Unfortunately, this only works if the tree already has
focus; if the editor has the focus, the "focusing" to the toolwindow seems
to override my requestFocus call back to the editor..
I've tried to focus with SwingUtilities.invokeLater without any luck.. how
can I run my focusing action after my toolwindow has received focus?
Thanks for any advice!
regards,
Ole
请先登录再写评论。