load a jtree with its properties...

T

tiewknvc9

Hi

I am trying to load a custom jtree with custom node types, and refresh
the view. Breaking it down like this:

the nodes each have properties associated with it (NodeProperties), the
tree object has unique graphics associated with parents and children.

When I load the structure of the jtree and add the properties
programatically. I then call
SwingUtilities.updateComponentTreeUI(m_tlTree);
to update the view of the jtree object.

Unfortunately this causes my jtree object to lose all of the properties
associated with it including the node properties and the images
associated with the table's view.

Does anyone know how to update the view while keeping the properties
associated with all of the nodes?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top