File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes tree refresh problem in TreeTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "tree refresh problem in TreeTable" Watch "tree refresh problem in TreeTable" New topic

tree refresh problem in TreeTable

Rachel Mood

Joined: Aug 16, 2006
Posts: 3
I have a TreeTable struture with Tree in the first column. Tree is contructed dynamically by reading data from the GPS device. Each node(row) in the Tree represents GPS message.
If i expand tree root node when the tree contruction process is going on, then there is a problem. Tree doesn't display nodes(GPS DATA) constructed/read after this point. It displays only those noded that were constructed before tree expansion.
I think there is some problem with Tree refresh. Ideally it should display all the nodes that are added to the root node.
I am not able to make out whether it is the problem with TreeExpansionlistener or Tree Refresh. I tried using repaint(), but it doesn't work.
Please suggest me something.
I agree. Here's the link:
subject: tree refresh problem in TreeTable
It's not a secret anymore!