Also, please do not ask questions in multiple posts... you only need to ask once. In addition, since your question really has to do with how to generate trees in JSP, it doesn't have a lot to do with Swing / JFC / AWT... so I'm moving it to the JSP forum...
Thanks! and welcome to the JavaRanch!
Write once, run anywhere, because there's nowhere to hide! - /. A.C.