djukics
February 19th, 2000, 06:53 AM
hi all,
imagine a combo box, a tree (and a table) that make up
something like Explorer.
when i enter path in the combo box it is verified, added to
the box list, and the tree is parsed to that exact dir.
also, when you select the node (dir) in a tree, it has
to add dir to the combo box list (all in valueChanged() method)
this leads to a kind of recursion and doubling of items in the list,
because i first remove the dir from the list, and then add it at 0 position.
i tried using itemStateChanged() and actionListener but i dont see the correct solution to the problem.
any hints?
10x
imagine a combo box, a tree (and a table) that make up
something like Explorer.
when i enter path in the combo box it is verified, added to
the box list, and the tree is parsed to that exact dir.
also, when you select the node (dir) in a tree, it has
to add dir to the combo box list (all in valueChanged() method)
this leads to a kind of recursion and doubling of items in the list,
because i first remove the dir from the list, and then add it at 0 position.
i tried using itemStateChanged() and actionListener but i dont see the correct solution to the problem.
any hints?
10x