defaulttreemodel


Dynamically populating the tree model from a text file in JTree

风格不统一 提交于 2019-12-08 11:29:28
The problem I am facing is with the tree model of the JTree. I have defined the root node as: javax.swing.tree.DefaultMutableTreeNode rootNode = new javax.swing.tree.DefaultMutableTreeNode(projectName); When the application first starts, I want the treeModel to be created and loaded. For this, I am using a file meta.txt, which has information like the following: 1QuotesPrice.Job 2QuotesPrice.Df 1Quotes.Job 2Quotes.Wf 3Quotes.Df 2Falkeblang.Wf 3Falkeblang.Df The first column is the level, and the second is the node of the tree. Now based on this information, I want to create the tree model, but

Dynamically populating the tree model from a text file in JTree

烂漫一生 提交于 2019-12-08 08:32:22
问题 The problem I am facing is with the tree model of the JTree. I have defined the root node as: javax.swing.tree.DefaultMutableTreeNode rootNode = new javax.swing.tree.DefaultMutableTreeNode(projectName); When the application first starts, I want the treeModel to be created and loaded. For this, I am using a file meta.txt, which has information like the following: 1QuotesPrice.Job 2QuotesPrice.Df 1Quotes.Job 2Quotes.Wf 3Quotes.Df 2Falkeblang.Wf 3Falkeblang.Df The first column is the level, and

工具导航Map