Re: Regarding JTree



On 12 Oct 2005 00:23:47 -0700, kishore@xxxxxxxxxxxxx wrote or quoted :

> I need to make all the leafs(checkboxes) under it selected.

You can get a list of all the children right? Then you use recursion
to traverse the tree. Read up on the visitor design pattern.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: Count all nodes in a treeview
    ... Which suggests that the TTreeNodes type exposes the entire tree as a flat hierarchy via its "Item" member. ... Pedro's code does this via recursion, returning for each node the sum of the number of direct descendants and the calculated value of nodes from each of those descendants. ... child I traverse the childnode and get all of it's settings too. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U8
    ... >>That's true for the case where the current priority is ... >>somewhere else handy and we don't need to traverse ... >>recursive acquisition of a mutex by a given task. ... where recursion checking would use a single owner field. ...
    (Linux-Kernel)
  • Re: FIbonacci
    ... > Peteris Krumins wrote: ... prev2 is Fand prev is F. ... using continuation-passing style and tail recursion, ...
    (comp.lang.c)
  • Re: Depth First Search traversal of this list
    ... I am trying to traverse the list C)) in a way that the ... works by iterating over the items at one level in the tree. ... are deferred into a queue, which is processed after the atoms are visited. ... After collecting both the queue and current level items, we do the recursion to ...
    (comp.lang.lisp)
  • Re: Code problem
    ... > Your code portion is incomplete, so you leave us to guess. ... > Thus, when traverse call itself, the previous value of files is wiped out. ... the programmer is free to change implementation details more easily. ... little detail only creates a single List no matter how deep the recursion ...
    (comp.lang.java.help)