A Little bit offtopic : JTree with hyperlinks doesn't work in ToolWindow


I've managed to create a little test program with a JTree and hyperlink nodes. In this program i've managed to block call to scrollToVisible when editing a node with a customeditor (please see HyperLinkTreeExample.java -> tree.setUI(new MyBasicTreeUI());)
in order to avoid automatic horizontal scrolling when displaying the custom editor, see HyperlinkTreeExample.

My problem is that the same thing doesn't work when it's applied to a JTree in a ToolWindow (horizontal scrolling occurs) see Toolwindow.zip.

Does anybody knows why ?


Please sign in to leave a comment.