Project: SWT
Bug 223970 Table/Tree does not redraw checkboxes when enabled
Reported: 2008-03-25 16:16:52 | Status: resolved fixed

Run the testcase. Press the button. Note that the checkboxes in the table do not redraw enabled. Scroll the table to force them to redraw. import org.eclipse.swt.SWT; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class PR44 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.CHECK); table.setEnabled(false); for (int i = 0; i < 300; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("Item" + i); item.setChecked(true); } Button b = new Button(shell, SWT.PUSH); b.setText("Press"); b.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { table.setEnabled(!table.getEnabled()); } }); shell.setSize(300, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Tree.java