I asked a similar question before (it has all the screenshot and everything):
SWT Table.setLinesVisible(false) does not seem to work on Windows 7
After digging deeper, I observed two (surprising) things:
-
It actually has nothing to do with setLinesVisible() as I
initially assumed. Those dark column dividing lines are not “lines”,
in fact, if I setLinesVisible(true) using a light color, I’ll see
that the dark “lines” are to the left of the lines. In other words,
it appears the reason that those dark dividers exist is because the
background the column cell is not fully filled, it looks like there’s
1 or 2 pixels at the right end of the cell that’s not properly
painted to the desired cell background but is instead showing the
table background color. -
If I switch to an (much) older swt jar (talking about 3-5 years
old), then that “crack” doesn’t show up.
So this undesirable behavior only happens with newer swt jars on windows7.
Can someone please advise?
Isn’t that one of those bugs? Table or tree grid lines cover part of selection in win 7 or Tables: empty lines should not have a grid.
If not, you can write some post on swt forum.