Re: can JTree's have multiple roots and models ?
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 02:10:14 +0100
Markus Mueller wrote:
William Z. wrote:
Maybe I can just hide the main root node and just show the children.
You are looking for JTree#setRootVisible (see [1]), don't you?
[1] http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTree.html#setRootVisible(boolean)
Note, you need to make sure that the root is always open, even after updating the tree model. If it isn't, the user can't see the (model) root node to open the display of apparent root node.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- References:
- can JTree's have multiple roots and models ?
- From: William Z.
- Re: can JTree's have multiple roots and models ?
- From: Oliver Wong
- Re: can JTree's have multiple roots and models ?
- From: William Z.
- Re: can JTree's have multiple roots and models ?
- From: Markus Mueller
- can JTree's have multiple roots and models ?
- Prev by Date: Re: problem using html for multiline jbutton
- Next by Date: Re: can JTree's have multiple roots and models ?
- Previous by thread: Re: can JTree's have multiple roots and models ?
- Next by thread: has anyone gotten this exception using SkinLF?
- Index(es):