jTree1.setRootVisible(false);
but this means that no items are visible at all! (i.e. the children off the
root node are not made visible)
What I don't understand is that Borland wrote JBuilder 2 from Java, so how
did they get they trees to have multiple views?
Mark Hennessy
IT Director
WinVista Corp
-- George
Mark Hennessy wrote in message <6ubor9$jpc$1...@news.lauderdale.net>...
I agree with George about part of the suggestion ... you should use
root which is unvisible and multiple childs ... but I would not
suggest you to try using the notifications by yourself ...
Beware ... the methods are there for the UI components
so unless you rewrite the UI components ... or extends a
particular Look&Feel do not do this.
However, you should insert, remove and change nodes only
through the model (if you use the default model, you can get
it by the getModel() method ... which is there for you !), since
adding not through the model will not update the visible
nodes structures ....
which means, that if you want to insert a node, use the
insertNodeInto through the TreeModel, rather than using
the insert() method .....
Yours,
Rani