no need to cry out loud...
have you had a look at TreeModel? if not
you should. implement you own (or extend it from DefaultTreeModel). overwrite the method isLeaf(node) and getChildCount(node) etc. see the swing tutorial on JTree. you might want to provide your custom TreeNode implementation as well.
cheers,
Chantal