Hi All,
I have a JScrollPane on Which I am adding a JTree. I add data to the JTree dynamically based on the node selected. The data comes from the database. I use the pipeline function of Oracle to get me the data. I show the leaf nodes when they are added to the JTree.
When I click on a node the tree is populated with the data, but there is obvious flicker. When I put a System.out.println() to print something in the populate function the JTree dosen't flicker.
Instead of running the populate function in the main
thread, I tried calling function using the SwingUtilities.invokeLater(), but it won't show the data until the JTree has the complete data.
So I again called the function from the main thread. But the flicker is still there.
Maybe I have missed something...but I am not finding a solution.