Originally posted by Syed Ahsan: You should be able to connect to database from your applet using JDBC, and form the tree by looping through the resultset from a sql query. If you need to see an example, i can share one.
Just to expand a little on the above answer, there are security steps that you need to do before you can connect to the database via an applet( search for "signing applet" or "policy file" ). It is generally recommended that you use a servlet instead as it has many benefits over using only an applet. Jamie