swt 3.0 gtk bug: table header disappearing [message #438918] |
Sat, 03 July 2004 14:28 |
Eclipse User |
|
|
|
Originally posted by: john.rmts.donpac.ru
Hi,
Is it known bug?
public class App {
public static void main(String[] args) {
Shell shell = new Shell (Display.getDefault(), SWT.SHELL_TRIM);
shell.setLayout (new FillLayout ());
CTabFolder tabFolder = new CTabFolder(shell, SWT.BORDER |
SWT.BOTTOM);
for (int i=0;i<2;i++){
CTabItem tab = new CTabItem(tabFolder, SWT.NONE);
tab.setText("Tab 1");
Table table = new Table(tabFolder, SWT.NONE);
table.setHeaderVisible (true);
table.setLinesVisible(true);
for (int j=0;j<3;j++) {
final TableColumn tableColumn = new TableColumn(table, SWT.NONE);
tableColumn.setText("Column "+j);
tableColumn.setWidth(50);
}
table.pack();
tab.setControl(table);
}
Display display = Display.getCurrent();
shell.open();
while (!shell.isDisposed())
if (!display.readAndDispatch())
display.sleep();
display.dispose();
}
}
After clicking more than 3 times on tab control pages table header
disappered. Table header appear after mouse over it.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06184 seconds