• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAVA TREE

 
Norazanita Adnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.. can anyone help me..how can i read from table database and turn it into tree.. the data from table is something like this..

PARENT_ACTIVITY_ID ACTIVITY_ID ACTIVITY_DESC
------------------ --------- ------------------ ---------------------------
<null> 001 1 Activity Level 1
001 002 1-1 Activity Level 2
001 003 1-2 Actvity Level 2
001 004 1-3 Activity Level 2
002 005 1-1-1 Activity Level 3
002 006 1-1-2 Acti vity Level 3
004 007 1-3-1 Activity Level 3
004 008 1-3-2 Activity Level 3
<null> 009 2 Activity Level 1
009 010 2-1 Activity Level 2
009 011 2-2 Activity Level 2

can any one give me some example how can i do this..

thanks in advance
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The biggest problem will be in matching the nodes with their parents, but a few maps can come in handy:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!