如何加载默认值
我正在使用 JXTreeTable 和 DefaultTreeTableModel 构建树查看器。它将用于显示树中数百万个对象作为父对象和子对象。
使用此代码在树中插入节点的值 -
DefaultMutableTreeTableNode child = new DefaultMutableTreeTableNode("object" + i++);
model.insertNodeInto(child, root, root.getChildCount());
该模型已在加载时较早插入到树中。
我想显示插入的子项,因为它的值是从保存的结果中一一获取的,但它在列表完成后将完整的列表添加到模型中。
我怎样才能动态地显示对象列表?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论