Saving JTree
-
I know not many people are on this board, but I am trying to save a JTree to a database and am having a hard time trying to figure this one out. I was thinking of using arbitrary numbers to identify the parent node however I am struggling with this. Has anyone had any experience with this before? If so what were your solutions? Thanks! :-D
There are 10 kinds of people in this world. Those who understand binary and those who don't. We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
-
I know not many people are on this board, but I am trying to save a JTree to a database and am having a hard time trying to figure this one out. I was thinking of using arbitrary numbers to identify the parent node however I am struggling with this. Has anyone had any experience with this before? If so what were your solutions? Thanks! :-D
There are 10 kinds of people in this world. Those who understand binary and those who don't. We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
I see no one really reads this still, but I was hoping a few people may see it. Anyway I am still working on saving a DefaultMutableTreeNode to the database and am having a tough time iterating through the tree. I am trying to write a recursive method to do so. Is this the correct way to do this and if anyone can try and show me an example that would be great! Thanks again!! There are 10 kinds of people in this world. Those who understand binary and those who don't. We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
-
I know not many people are on this board, but I am trying to save a JTree to a database and am having a hard time trying to figure this one out. I was thinking of using arbitrary numbers to identify the parent node however I am struggling with this. Has anyone had any experience with this before? If so what were your solutions? Thanks! :-D
There are 10 kinds of people in this world. Those who understand binary and those who don't. We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
I don´t tried this in real. But if you put a DefaultTableModel behinde the Jtabel. Than you can modify the Model and get a [][] of strings ( I think), this might help.