Skip to main content


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 13:22 Go to next message
Dima is currently offline DimaFriend
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 15:41 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
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 Dec 07 15:06:31 GMT 2024

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

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

Back to the top