Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About JTree's UI refresh issue?  RSS feed

 
Patrick Deng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JTree component used in my Swing Application. The tree will refreshed when it received events on adding/removing/modifying tree node.
Sometimes, the tree maybe receive a lot of node adding events in a short period, so it would refresh UI continually. That's so heavy for UI repaint, so I don't like that. I want to the tree will refresh ui just one time, untill it have received all events.
How can I implement this requirement? Anybody help me! Thanks a lot.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"JFML" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
Patrick Deng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got your directions!
I had changed my name yesterday.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!