When the JTreeMap is embeded in another component (such as the split pane in your example code) mousing out quickly causes the last leaf node that was highlighted (via mouseover) to remain highlighted. From my testing it appears that this occurs because the mouse moves too quickly over the very small border of the JTreeMap to register as no longer pointing at any leaf, so the active leafnode is never set to null. The fix was simply adding a protected inner class that extends MouseAdapter and overwrites MouseExited to set the active leaf to null and repaint on mouse exit.
a patch for JTreeMap, to show the necessary changes to resolve the issue
Logged In: NO
I tried this work around. It doeas not work. In the reveal() method of tree map the color is set to transparency color and a rectangle is filled. Calling repaint, setting background color - nothing seems to work. Could a correct work around be given, very urgent please .
A patched version of JTreeMap.java, from version 1.1
Logged In: YES
user_id=1700602
Originator: YES
I just re-tested the patch on the new version of JTreeMap that was released (1.1). The problem still persists and the patch still fixes it. If you are having problems patching the main file, download the patched version of JTreeMap.java that is attached to this post.
File Added: JTreeMap.java
Logged In: NO
Thank you.The patch worked. A small mistake on my side.
Logged In: NO
Thank you.The patch worked. A small mistake on my side.
fixed in 1.1.1