Community
Participate
Working Groups
Try this snippet. With Linux GTK, text is wrapped in the table, with Windows 98 SE this displays | characters instead of wrapping a line. SWT used version: 3111. import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class Main { public static void main(String[] args) { Shell shell = new Shell(); shell.setLayout(new FillLayout()); Table table = new Table(shell, SWT.NONE); table.setLinesVisible(true); table.setHeaderVisible(true); TableColumn c = new TableColumn(table, SWT.NONE); c.setWidth(200); TableItem ti1 = new TableItem(table, SWT.NONE); ti1.setText("foo\nfoo"); TableItem ti2 = new TableItem(table, SWT.NONE); ti2.setText("foo\rfoo"); TableItem ti3 = new TableItem(table, SWT.NONE); ti3.setText("foo" + System.getProperty("line.separator") + "foo"); shell.pack(); shell.open(); Display d = shell.getDisplay(); while (!shell.isDisposed()) { if (!d.readAndDispatch()) { d.sleep(); } } } }
Windows can't be convinced to display wrapped text. Veronika to disable this feature on GTK.
*** Bug 19496 has been marked as a duplicate of this bug. ***
We won't fix this.
Is this still true?(In reply to Steve Northover from comment #1) > Windows can't be convinced to display wrapped text. Is this still true?
*** Bug 324404 has been marked as a duplicate of this bug. ***
bug 42263 and