I am trying to have a Tree in an expanbarwidget. User should be able to scroll through the tree elements using a slider. I wrote following code for the same
Whlie debuggin I put a breakpoint inside slider-listener. Message says- "tree" cannot be resolved. However if I try this on a text box instead of tree everything works fine. Any suggestions ? Thanks for reading my question .
SCJP 1.4 (90%)<br />SCWCD 1.4 (88%)
posted 11 years ago
Hi Its working now ..just shifted some code outside the listener.
<Control children= tree.getChildren(); int count=children.length; int newSel=count*slide.getSelection()/100;>