Table header not visible - Windows 7

deed none at none.none
Sat Feb 16 05:01:23 PST 2013


This example code doesn't render any table headers on Windows 7:


     Table table2 = new Table(shell, SWT.NONE);
     table2.setBounds(10, 10, 270, 80);
     table2.setHeaderVisible(true);

     TableColumn fruit = new TableColumn(table2, SWT.LEFT);
     fruit.setText("Fruit");
     fruit.setWidth(100);
     TableColumn colour = new TableColumn(table2, SWT.LEFT);
     colour.setText("Colour");
     colour.setWidth(170);

     TableItem fruit1 = new TableItem(table2, SWT.NONE);
     fruit1.setText(0, "Apple");
     fruit1.setText(1, "Red");
     fruit1.setChecked(true);
     TableItem fruit2 = new TableItem(table2, SWT.NONE);
     fruit2.setText(["Kiwi", "Green"]);
     fruit2.setBackground(new Color(display, 255, 0, 0));
     TableItem fruit3 = new TableItem(table2, SWT.NONE);
     fruit3.setText(["Banana", "Yellow"]);


More information about the Digitalmars-d-dwt mailing list