• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree - Fonts - Threads And CellRenderers

 
Dave Fribley
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Gurus, here's the problem.

I have a Jtree (User list) that gets updated from a network thread - ie when a user logs onto the system, the user is add to the jtree. The problem that I'm running into is that sometimes the nodes added to my Jtree are being rendered incorrectly. What happens is one or more of the nodes get stretched vertically to cover way more vertical space than they should. It's a difficult problem where I've tried a few different forms of synchronization & rendering and I'm still having troubles. I've got a lot of code in my application, so I tried to quickly develop this test application to demonstrate my problem.

I am using JRE1.5.0_01



Any ideas on how I can stop this from happening?

Thanks in advance!

[ March 24, 2005: Message edited by: Dave Fribley ]
[ March 24, 2005: Message edited by: Dave Fribley ]
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding node to empty JTree with root node hidden
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4244496
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic