Browse Source

Added more tree nodes to check cell rendering.

pull/170/head
weisj 5 years ago
parent
commit
bd56ab9f6c
  1. 4
      core/src/test/java/ui/tree/TreeDemo.java

4
core/src/test/java/ui/tree/TreeDemo.java

@ -61,6 +61,10 @@ public class TreeDemo implements ComponentDemo {
root.add(parent1);
root.add(parent2);
for (int i = 0; i < 100; i++) {
root.add(new DefaultMutableTreeNode("Leaf " + i));
}
JTree tree = new JTree(root);
tree.setCellRenderer(new DefaultTreeCellRenderer() {
@Override

Loading…
Cancel
Save