import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.layout.*; public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout (new FillLayout ()); Table table = new Table (shell, SWT.NONE); table.setLinesVisible (true); table.setHeaderVisible (true); for (int i = 0; i < 50; i++) { TableColumn col = new TableColumn (table, SWT.NONE); col.setWidth (80); } for (int i = 0; i < 1000; i++) { TableItem item = new TableItem (table, SWT.NONE); for (int j = 0; j < 50; j++) { item.setText (j, "Cell " + i + " " + j); } } shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } }