滚动表格时表格单元格中按钮中的java闪烁图像(Eclipse RAP平台)
我使用TableEditor类在JFace表格单元格中添加了复选框按钮
for (TableItem tableItem : tableViewer.getTable().getItems()) {
TestData testData = (TestData) tableItem.getData();
Button button = new Button(tableViewer.getTable(), SWT.CHECK);
button.setSelection(testData .checked);
button.setData(testData);
TableEditor tableEditor = new TableEditor(tableViewer.getTable());
tableEditor.grabHorizontal = true;
tableEditor.minimumWidth = button.getSize().x;
tableEditor.horizontalAlignment = SWT.FILL;
tableEditor.setEditor(button, tableItem, COLUMN_INDEX_WITH_CHECKBOX);
}
当我滚动复选框时,图标会延迟显示
我怎样才能修好它
共 (0) 个答案