How to load second level nodes dynamically in jTree?

Hi,

I'm new to jTree & I want to load jTree with two levels of Hierarchy dynamically.

First level nodes I loaded from the database directly.

And regarding the second level nodes, I want them to be loaded only when I expand the first level nodes(on tree expansion), instead of loading it before-hand itself.

I tried this in TreeExpansion event, but still my tree was not refreshed.

Is there anyother way to do this .....?

Thanks.

G.

[485 byte] By [sangar_ga] at [2007-11-26 22:24:05]
# 1
Hi sangar;use method valueChanged() in ListSelectionEvent interface to notify tree selection change.
Chowdarya at 2007-7-10 11:23:57 > top of Java-index,Desktop,Core GUI APIs...