Bug #2187

Updated by Sebastien Jacquot about 3 years ago

Tables columns auto-resize is very slow on Windows. The column are resized one by one and can take up to seconds when there are a more than one of them.
It seems this behavior occurs only on Windows.

h3. Editors/Results involved

* Specificities [done]
* Lexical Table [done]
* Index [done]
* Lexicon [done]
* Cooccurrence [done]
*
Concordance [done]
* possibly CA data (at this moment the columns are not packed on sorting)

h3. Solution

It seems the problem can be fixed by disabling the table redrawing, packing the columns, then enabling back the redrawing.

<pre>
viewer.getControl().setRedraw(false);
viewer.refresh();


for (TableColumn col : viewer.getTable().getColumns()) {
col.pack();
}

viewer.getControl().setRedraw(true);
</pre>

Back