我使用表查看器创建了一个表,使用SWT Java。现在我想在每一行的末尾添加一个按钮,也可以在表列标题中添加一个按钮。可以任何人帮我实现这个吗?
这就是我的开始:
this.viewer = new TableViewer(this);
this.table = this.viewer.getTable();
TableColumn column = new TableColumn(this.table, SWT.LEFT);
column.setText("Table Header");
this.table.setHeaderVisible(true);
this.table.setLinesVisible(true);