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 Jain
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:Why must press "Enter" for ComboBoxCellEditor?
Goto Forum:
  


Current Time: Sat Oct 25 16:06:57 GMT 2014

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

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