JTextPane in ToolWindow


I have the following problem: If I place a normal Swing JTextPane into a
tool window some key events are not handle correctly, i.e. the 
button will no longer jump to the end of line like it does if I use the
text pane in another Swing application but instead jump to the end of
the document.

A little debugging showed that the key event is somehow catched from a
special event queue and redirected to IDEA's own action implementations.

Is there a way to use the standard event handling from my text pane or
if not how can I make sure that it behaves as expected?

Stefan Stiller

Please sign in to leave a comment.