leeor
asked on
JInternalFrame repaint() problems
I have a JTree in a JInternalFrame and when the tree is clicked (i.e. expanded or collapsed), it does not get repainted. It behaves normally when used in a regular Frame. I've tried manually calling repaint() in the event handler of the tree mouse clicks - that didn't work either. Only when I drag, move or resize the JInternalFrame does the JTree get updated. Any ideas????
..................Lee
lee_kleiner@sns.ca
..................Lee
lee_kleiner@sns.ca
ASKER
That did not work....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got it working thanks 2 your source code...Thanks
Trying calling invalidate() on the Tree in the
mouse click event handler.
If you then validate() the tree again, the
tree should redraw.