Component « JTree « Java Swing Q&A





1. JTree and JDBC - Swing Component    coderanch.com

Hi , I wrote a program to access records from the database and display records in a tree structure.I was able to do only up to one level.Even though the code works fine the higher level retrieves only one record but the sub level for the first record higher level retrieves all records.The same code works fine if I hard code ...

2. Tree Component    coderanch.com

3. Help In building a tree component    coderanch.com

4. add a swing component to a tree    coderanch.com

If you mean can you add swing components to the nodes, the answer is "yes". I had to do this for a project once. As I understand it, you need to create a "template" (I hate using this word, but there it is!) for the objects you're going to be putting into the nodes. This template tells Swing how to interpret ...