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.setHeaderVisible(true); TableColumn column = new TableColumn(table, SWT.NONE); column.setText("This is a column header"); for (int i = 0; i < 3; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("Item " + i); } column.pack(); Button button = new Button(table, SWT.NONE); button.setText("Button"); button.setBounds(10,10,50,50); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); }