Link to home
Start Free TrialLog in
Avatar of leeor
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
Avatar of rembo
rembo



Trying calling invalidate() on the Tree in the
mouse click event handler.  

If you then validate() the tree again, the
tree should redraw.


Avatar of leeor

ASKER

That did not work....

ASKER CERTIFIED SOLUTION
Avatar of mnelson051997
mnelson051997

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leeor

ASKER

I got it working thanks 2 your source code...Thanks