Mot
Mot

Reputation: 29530

SWT table: how to make columns as wide as necessary

With Swing this was quite easy: iterate over all rows in a column and search the widest entry. SWT (or Windows?) supports the double click at the separator between table columns, but how to do that with SWT programmatically?

Upvotes: 1

Views: 427

Answers (1)

ert
ert

Reputation: 516

Googling yielded the following:

Try to use TableColumn.pack() as described in http://dev.eclipse.org/newslists/news.eclipse.tools/msg60980.html

Upvotes: 2

Related Questions