I have this Jtree, and I have to insert into it "tables" in my tbltables table. (What I mean by that is I have a table in my MSQL database called tbltables, and in it there's a list of tables).
So those tables can have tables in them as well. So now the problem: I don't know how to tell it that the one table should be in the other one. The only thing I can think of, is when I add the tables to my Jtree (I can do that, but then not save how they look into my db), I can then save the selected index, or added node's destination. like ["Groceries","fruit"] and then when I call it from my database I can add it like that.
So then I will need to convert the path to a string and vice versa. Am I doing this wrong? Is there better way to do this?
Note: I'm not working with physical files and folders, I'm working with "imaginary ones" in my database of which I have their destination.