Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JTree - Fonts - Threads And CellRenderers

 
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 ]
 
Ranch Hand
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
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic