Project: SWT
Bug 15643 Cheese in Table when changing font
Reported: 2002-05-09 12:31:51 | Status: resolved fixed

Eclipse 20020508 Windows 2000 Run the following example. Note the cheese in the header. Same thing happens when setting a small font. 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.BORDER); table.setHeaderVisible(true); FontData fontData = table.getFont().getFontData()[0]; fontData.setHeight(16); //fontData.setHeight(4); final Font largeFont = new Font(display, fontData); final TableColumn column1 = new TableColumn(table, SWT.NONE); column1.setText("Column 1"); final TableColumn column2 = new TableColumn(table, SWT.NONE); column2.setText("Column 2"); final TableColumn column3 = new TableColumn(table, SWT.NONE); column3.setText("Column 3"); for (int i = 0; i < 100; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("item " + i); } column1.pack(); column2.pack(); column3.pack(); shell.open(); table.setFont(largeFont); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } largeFont.dispose(); display.dispose(); }

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