File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: JTree - Fonts - Threads And CellRenderers