Resize the column of a table to fill all the available space
I have this table in Eclipse SWT, with 5 columns. I resize the window and together with that the whole table but the columns don't get resized to fill all the available space. Is there a layout method I can use in order to make a column resize itself to fill all the available space? I found some code that makes the columns resize when the client space has been resized but that seems like a small hack to me. There surely must be a decent elegant way of doing this by using the layout itself. This might come in handy: Composite tableComposite = new Composite(parent, SWT.NONE); TableViewer