我不认为有这样做的直接方法.但作为解决方法,请尝试以下方法.我曾经使用过类似的东西.
public void moveTableItem(Table table, int from, int to) {
TableItem item2Move = table.getItem(from);
TableItem newTableItem = new TableItem(table, SWT.NONE, to);
newTableItem.setText(item2Move.getText());
// You may want to clone the entire item here; and not just the text.
// Dispose off, the old item.
item2Move.dispose();
}
Run Code Online (Sandbox Code Playgroud)