The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


"..." when I change text in the label of a node in JTree

Posted by STS on May 16, 2001 at 9:59 AM

> The nodes of my JTree are rendered with the JLabel (default
> implementation). I draw the tree a first time and the display
> is OK (label are fully displayed).
> If I change the label of a node, the displayed text is
> not correct anymore. I get something like "no..." instead of
> "node". The text is not fully displayed.
> Does anybody know how to force a correct display?
> I've tried repaint, invalidate, validate without success.
> Thanks.
Put one blank character behind the text


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us