I am building a tree viewer using JXTreeTable
and DefaultTreeTableModel
. It will be used to show millions of objects in tree as parent and their child.
Using this code to insert value of node in tree -
DefaultMutableTreeTableNode child = new DefaultMutableTreeTableNode("object" + i++);
model.insertNodeInto(child, root, root.getChildCount());
This model have been inserted to tree earlier at loading time.
I want to show a child inserted as its value fetched from saved result one by one, but it adding complete list to model after listing finished.
How can I perform this showing listing of object dynamically?