Project: SWT
Bug 97597 Tree is not showing lines
Reported: 2005-05-31 13:15:23 | Status: resolved fixed

3.1RC1 - run the snippet below - the Tree that's displayed does not show any horizontal lines, though Tree.setLinesVisible(true) was invoked public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setBounds(10,10,250,200); final Tree tree = new Tree (shell, SWT.NONE); tree.setBounds(10,10,200,200); tree.setLinesVisible(true); new TreeItem(tree, SWT.NONE).setText("item 1"); new TreeItem(tree, SWT.NONE).setText("item 2"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }

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