Abhishek Choudhary
Abhishek Choudhary

Reputation: 8405

How to remove border of Eclipse SWT Table

I am adding a SWT Table in Eclipse Form, but I want to remove the outer border of the Table. How to do the needful.

enter image description here

Above is the Table I created, But I dont want the Boundary/Border around it.

Upvotes: 0

Views: 1900

Answers (3)

Nyabkun
Nyabkun

Reputation: 56

This border is rendered even if you don't use SWT.BORDER. But if there is no TableColumn, no border is rendered. Just remove TableColumn, if you want to remove border.

Upvotes: 1

mobaisch
mobaisch

Reputation: 57

Try to look for SWT.BORDER and replace it with something else, like SWT.NONE

It could be where you create the table or the container.

Upvotes: 0

Jan Hruby
Jan Hruby

Reputation: 1497

Don't know if this is the case, but from the picture the outer border looks like the one painted when SWT.Border flag is used. Maybe you are adding your table to composite that has this flag used as style constant. Remove this constant and the outer border will be gone

Upvotes: 2

Related Questions