Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to control a TableViewer's size?
How to control a TableViewer's size? [message #514868] Tue, 16 February 2010 23:18
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
I have a TableViewer with SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI. This TableViewer is in a Composite with a TableColumnLayout, that itself is in a composite with an SWT.HORIZONTAL FillLayout. When the table is first drawn (and it contains more items than fit on the screen) the table gets a vertical scrollbar. However, if the items are added later (viewer.setInput(...)) the table expands to show all items (and then some...) and the composite gets a scrollbar. How do I ensure that it's always the table and not a parent that gets the scrollbar?
Previous Topic:Wrapped text widget anywhere?
Next Topic:Adding a MouseTrackListener to a TreeViewerColumn
Goto Forum:
  


Current Time: Fri Apr 26 09:57:21 GMT 2024

Powered by FUDForum. Page generated in 0.02493 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top