This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTree - Fonts - Threads And CellRenderers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree - Fonts - Threads And CellRenderers" Watch "JTree - Fonts - Threads And CellRenderers" New topic
Author

JTree - Fonts - Threads And CellRenderers

Dave Fribley
Greenhorn

Joined: Jun 01, 2004
Posts: 3
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

Joined: Jan 14, 2004
Posts: 1535
Adding node to empty JTree with root node hidden
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4244496
 
Have you checked out Aspose?
 
subject: JTree - Fonts - Threads And CellRenderers
 
It's not a secret anymore!