Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JFace/SWT multiline TableViewer rows

Tags:

java

swt

jface

Is it possible to get multiline (say 2-line) row in JFace tableViewer? I want my long text part spreaded between two lines, and my short lines aligner vertically in the cell. How can I achive that result?

like image 656
execc Avatar asked Nov 13 '11 21:11

execc


1 Answers

The table control itself does not support this. You will have to paint the content of those cells yourself. There's an official example (Snippet006TableMultiLineCells) on how to do that.

like image 50
Frettman Avatar answered Nov 20 '22 15:11

Frettman