Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Slider usage with a Tree  RSS feed

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Swati Udas
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!