By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

TreeCellRenderer repaint problem

P: n/a
Hello,

I have an editable JTree with a custom TreeCellRenderer (extends from
DefaultTreeCellRenderer). I redefined the getTreeCellRendererComponent
method, returning a JPanel in some case instead of the default JLabel.
When I edit a node, the component is not repainted well if the new
value length is greater than the previous one (e.g. new value =
TheNewValue; old value = OldValue). By not repainted well I mean that
the component shows only "TheNew ..." instead of "TheNewValue". Do you
have an idea on how to fix this problem?

Thanks
Sydney
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.