Is it possible to add a Remove button to a cell in a table?
I have a table with 5 columns, I would like to add a 6th column. I want the 6th column to have
Below code should work for you
TableItem item = (TableItem) item;
Button button = new Button(table,swt.none);
button.setText("Remove");
control.setBackground(item.getBackground());
TableEditor editor = new TableEditor(table);
editor.grabHorizontal = true;
editor.grabVertical = true;
editor.setEditor(button , item, columnIndex);
editor.layout();