Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table gridlines & headers misaligned
Table gridlines & headers misaligned [message #460816] Thu, 08 September 2005 05:05 Go to next message
Eric Adamson is currently offline Eric AdamsonFriend
Messages: 5
Registered: July 2009
Junior Member
Developing with Win2K, SWT 3.1 (swt-win32-3138.dll), Table gridlines do not
align correctly with column headers. That is, vertical gridlines do not
align with the black grid that surrounds header "buttons". Rather, they
appear to be shifted one pixel to the right, aligning with the button
highlight. This is probably a strictly cosmetic issue, but it creates a
jarring visual effect.

I could not find this listed with Bugzilla, but wanted to check with others
before submitting a bug report. I'm still relatively new to SWT, and wanted
to make sure I'm not overlooking a property setting. (Test source appears


Eric Adamson
Lansing, MI

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.*;

public class TableGridlines {

public static void main(String[] args) {

Display d = new Display();
Shell s = new Shell(d);

s.setBounds(200, 200, 500, 300);
s.setText("SWT-Win32 Table Gridlines \"Bug\"");;

Rectangle r = s.getClientArea();
Table t = new Table(s, SWT.BORDER);
t.setBounds(15, 15, r.width-30, r.height-30);

for (int i=0; i<6; i++) {
TableColumn tc = new TableColumn(t, SWT.CENTER);
tc.setText("Column " + (i+1));

while (!d.isDisposed()) {
if (!d.readAndDispatch()) {



Re: Table gridlines & headers misaligned [message #460833 is a reply to message #460816] Thu, 08 September 2005 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

you are right, I have the same problem.
Re: Table gridlines & headers misaligned [message #460871 is a reply to message #460816] Fri, 09 September 2005 10:11 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Sounds like a good bug to report; you've got sample code showing the problem which you can upload as an attachment, so raise a bug :-) It's because of hard-working users of Eclipse that such things get noted and fixed.
Previous Topic:DnD Drag behavour on Table control
Next Topic:how to build interface similar to eclipse ide
Goto Forum:

Current Time: Fri Sep 20 03:48:11 GMT 2019

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

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

Back to the top