This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree node highlighted only after event is processed  RSS feed

 
sharath kv
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
The JTree node is highlighted only after the event is completed.I want to highlight the selected node as soon as it is selected and not after the event for the node selected is completed.
I am populating values from the database to the GUI after the node of a JTree is selected.If there
are large number of values,the time taken to load the values onto the GUI is approx 30-45 seconds,
during that time the selected node is not highlighted.Only after the values are loaded will
the selected tree node becomes highlighted.
Any suggestions??
 
Julia Chen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how you implement this. In my JTree, when node is selected and it is highlighted at same time. I use lazy-load and MouseListener
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!