Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Table display
SWT Table display [message #464918] Thu, 01 December 2005 08:22 Go to next message
Dima is currently offline Dima
Messages: 6
Registered: July 2009
Junior Member
When I call .pack() on my SWT table, there always seems to be some extra
space left on the right and at the bottom for an extra row/column. I would
like to resize my table such that only the data portion is visible.
Is there an elegant solution for doing this?

Thanks.
Re: SWT Table display [message #464931 is a reply to message #464918] Thu, 01 December 2005 10:41 Go to previous message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
The extra space is for a scrollbar should one be required.

Please see the following snippet:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet77.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

"Dima" <dtuman@hotmail.com> wrote in message
news:7c0158e8da3f7cddc0ca93d3db2d0123$1@www.eclipse.org...
> When I call .pack() on my SWT table, there always seems to be some extra
> space left on the right and at the bottom for an extra row/column. I would
> like to resize my table such that only the data portion is visible. Is
> there an elegant solution for doing this?
>
> Thanks.
>
Previous Topic:ViewForm Troubles
Next Topic:Extra blanc row and column in SWT table
Goto Forum:
  


Current Time: Sat Aug 30 20:34:37 EDT 2014

Powered by FUDForum. Page generated in 0.01664 seconds