Search code examples
jfacetableviewer

JFace adapt TableViewerColumn


I would like to compute the width for each TableViewerColumn so that it fits the content best. Is there any "best practice" way of doing this?


Solution

  • I think you're after ...

    TableViewerColumn col = ...;
    col.getColumn().pack();