I guess you would just have to write a function to process the data. you
probable need to look at the "result set" and use a data structure where you
can, one by one, add the each child to the parent.
Then you could write a output method that goes through this and for each
node tabs the children and prints them.

On 2/13/06, Gangaa D <[EMAIL PROTECTED]> wrote:
>
> How do I loading data in tree model from database
> table by Java?
> 1) ReadData(Result); read following table;
> table structure:
> id msg  child
> 1  msg1  0
> 2  msg2  1
> 3  msg3  2
>
> 2) ViewTree(); print following tree;
> Tree View:
> msg1
>    msg2
>      msg3
>
> Please help me solve it.
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to