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 node highlighted only after event is processed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree node highlighted only after event is processed" Watch "JTree node highlighted only after event is processed" New topic
Author

JTree node highlighted only after event is processed

sharath kv
Greenhorn

Joined: May 06, 2003
Posts: 20
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

Joined: May 21, 2003
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree node highlighted only after event is processed
 
Similar Threads
JTree with CheckBox
plus/minus sign in a jtree
JTree
JTree not scrolling to selected node
jTree with the TreeModel