Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree icons not refreshing - JRE 1.5

 
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm testing an applet (that we currently still build with 142.08) in a JRE 1.5 environment. It looks like this has uncovered a difference in the painting of Tree icons. The below code (QPTreeModel implements TreeModel) is the area involved. The tree icons status (which is represented by differing icon files) isn't updated like it used to be. If I do something like re-size the window (forcing a repaint) the icon is updated.

Anyone know of a similar issue in 1.5? And how to deal with it?





thanks in advance,
Tom
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!