Results 1 to 2 of 2
Thread: CheckBoxTreeViewer and Scroll
- 11-24-2009, 08:56 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
CheckBoxTreeViewer and Scroll
I'm having some difficulties setting the visible portion of the Tree. I'm trying to do something like:
I've searched around some and can't seem to find the right way to get this working. The goal is to be able to change which part of the tree is visible in the scroll panel. I have to admit, I'm new to SWT so it could be I'm missing something simple here. Hopefully you'll be able to help out!Java Code:tv = new CheckboxTreeViewer(composite); tv.getTree().setLayout(new GridData(GridData.FILL_BOTH)); ... //set content and label providers //now scroll to a spot in the tree! TreeItem[] ta = tv.getTree().getItems(); TreeItem ti = ta[2]; Rectangle r = ti.getBounds(); Item i = tv.scrollDown(r.x,r.y);
Thanks in advance!
- 11-24-2009, 09:03 PM #2
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
smooth-scroll
By designer in forum Java AppletsReplies: 1Last Post: 07-21-2009, 07:10 PM -
JFACE CheckboxTreeViewer
By pele in forum SWT / JFaceReplies: 0Last Post: 07-14-2009, 08:11 AM -
problem with scroll bar
By r.gnanaprakasam in forum AWT / SwingReplies: 0Last Post: 04-22-2009, 01:24 PM -
CheckboxTreeViewer Demonstration
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:53 PM -
Jtextarea and scroll
By ziniestro in forum AWT / SwingReplies: 2Last Post: 06-01-2007, 03:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks