滚动表时,表格单元格中的按钮闪烁图像(Eclipse RAP平台)

时间:2015-05-26 12:53:44

标签: java eclipse swt jface

我使用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 个答案:

没有答案
相关问题