[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT Table

Hi David,

my antecessor already proposed some good advice on this topic. I just wanted to add another option to address this problem. I always handle it this way:

1) Define a default width for all table columns
2) Add the user option to resize all colums that way that they adopt the width of the widest cell by using <i>TableColumn.pack()</i>. Add an accelerator for this as done in windows explorer (ctrl + plus) for example.

I switched to this solution since it doesn't restrict the user so much. Experience taught me that many users do not want a table to auto resize as the enclosing component, e.g. the window is resized.

Greetings
Sebastian