2

I'm using org.eclipse.swt.widgets.Table. I have a column whose width is 100, say if the corresponding TableItem's text is longer than the column width, I want the remaining text to appear in a new line in that cell.

Is it possible?

Baz
  • 36,440
  • 11
  • 68
  • 94
user1168608
  • 598
  • 2
  • 10
  • 27

1 Answers1

2

You can use multiline TableItems as shown in this example:

enter image description here

However, you will have to handle the insertion of newlines (i.e. \n) yourself. TableItems do not support wrapping by themselves.

Baz
  • 36,440
  • 11
  • 68
  • 94