posted 13 years ago
Rob
Thanks for the pointer to the reading material. My application is not nearly as offensive as the test case. The test case just makes it fail quicker.
The real application's while loop is more like:
This gives sort of an odometer effect to the node labels, and one can see from the tree which folder has the most action as the odometer is rolling faster there.
The trouble arises when the uses expands or collapses the node. If you take the sleep out, it is easier to make it fail. If I use the tree.repaint() the text in the
node gets the funny behavior depicted in the attached jpg.
So now the question is "How does a worker thread notify the UI that the node has changed and needs to be repainted?"
dots.jpg