Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Table margin
SWT Table margin [message #448664] Thu, 13 January 2005 00:44 Go to next message
Avneesh Jain is currently offline Avneesh JainFriend
Messages: 11
Registered: July 2009
Junior Member
I created a Table with 4 columns and called TableColumn.pack() after setting
the data in the table. This displays the table columns with correct sizes
but there is an extra row showing at the bottom of the table (without any
data in it) and there is also an extra column coming on the right. How can I
remove the extra row and column?

Is it possible to show the column separator lines only in a table? The
setLinesVisible(true) causes both row lines and column lines to be visible.

Thanks
Avneesh
Re: SWT Table margin [message #448697 is a reply to message #448664] Thu, 13 January 2005 13:59 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The extra space is where the scrollbars will appear if they are required.
You could subtract off the width of the scrollbars. You have to be careful
though because you may require a vertical scrollbar.

It is not possible to have just the vertical lines and not the horizontal
lines. Note that the appearance of the lines depends on your platform and
theme. On some platforms/themes these are not actually lines but
alternating background colours.

"Avneesh Jain" <avneesh.jain@epiphany.com> wrote in message
news:cs4g81$8ef$1@www.eclipse.org...
>I created a Table with 4 columns and called TableColumn.pack() after
>setting
> the data in the table. This displays the table columns with correct sizes
> but there is an extra row showing at the bottom of the table (without any
> data in it) and there is also an extra column coming on the right. How can
> I
> remove the extra row and column?
>
> Is it possible to show the column separator lines only in a table? The
> setLinesVisible(true) causes both row lines and column lines to be
> visible.
>
> Thanks
> Avneesh
>
>
Previous Topic:mouse wheel problems
Next Topic:java.lang.UnsatisfiedLinkError: no swt-win32-3063 in java.library.path
Goto Forum:
  


Current Time: Fri Apr 26 09:50:45 GMT 2024

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

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

Back to the top