import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.*; public class Main { public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.H_SCROLL | SWT.V_SCROLL); table.setHeaderVisible(true); final TableColumn column = new TableColumn(table, SWT.LEFT); column.setText("Column 1"); column.setWidth(200); for (int i = 0; i < 50; i++) { new TableItem(table, SWT.LEFT).setText(String.valueOf(i)); } shell.setSize(500, 400); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }