Welcome to the Ranch Pamela, we are happy to have you here
I have read several examples from other forums and tried but to no avail.
What problem did you run into when you tried it?
As you probably know, the JTree is just the "view" and is not aware of the data at all. All the data is encapsulated inside the TreeModel.
If you carefully go through the API for the TreeModel, you will find lots of convenient methods like getChildCount() and getChild() etc. If you haven't done so already, please do take out time to read
this.