📄 e1019. creating a jtree component.txt
字号:
This example creates a tree component with a root node and a child of the root node. You build the tree hierarchy by adding nodes to nodes.
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root Label");
root.add(new DefaultMutableTreeNode("Node Label"));
JTree tree = new JTree(root);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -