Java SWT: Clear all items in a table before writing
问题 How do I clear a table before writing all the rows? The data will be completely different every time I hit this code: graphicsMemoryTable.setRedraw(false); int count = 0; for(int i=0; i<graphicsMemory.size() && count<1000; i+=8,count++) { TableItem item = new TableItem(graphicsMemoryTable, SWT.NONE); item.setText(graphicsMemory.get(i).toString()); item.setText(1,graphicsMemory.get(i+1).toString()); item.setText(2,graphicsMemory.get(i+2).toString()); item.setText(3,graphicsMemory.get(i+3)