• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

needs help in adding nodes from database

 
sahas ullur
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have data in data base
i need to disply them in the jtree,
DATABASE RESULT
parentName nodeName
Parent Group1
Parent Group2
Parent Group3
parent is the rootnode and Group1,2,3 are the nodes of parent and
parentName nodeName
Group1 Child1
Group2 Child2
Group3 Child3
Group3 Group4
Group4 Child4
i need to display i the format of
parent
|
Group1-Child1
Group2-Child2
Group3-Child3
|
Group4-Child4
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you need help with? Getting the values out of the database? Check out the Online JDBC Tutorials Displaying items in a JTree? Check out the Swing Tutorial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic