Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java
index 6a185c5c51..e72cd9bd75 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug261288_TreeBGColor.java
@@ -20,26 +20,26 @@ import org.eclipse.swt.widgets.*;
public class Bug261288_TreeBGColor {
- public static void main( final String[] args ) {
- Display display = new Display();
- Shell shell = new Shell( display );
- shell.setLayout( new FillLayout() );
+ public static void main( final String[] args ) {
+ Display display = new Display();
+ Shell shell = new Shell( display );
+ shell.setLayout( new FillLayout() );
- Tree tree = new Tree( shell, SWT.BORDER | SWT.SINGLE );
- TreeItem rootItem = new TreeItem( tree, SWT.NONE );
- rootItem.setText( "Root" );
- for( int i = 0; i < 5; i++ ) {
- TreeItem item = new TreeItem( rootItem, SWT.NONE );
- item.setText( "Node " + ( i + 1 ) );
- }
- tree.setBackground( display.getSystemColor( SWT.COLOR_RED ) );
+ Tree tree = new Tree( shell, SWT.BORDER | SWT.SINGLE );
+ TreeItem rootItem = new TreeItem( tree, SWT.NONE );
+ rootItem.setText( "Root" );
+ for( int i = 0; i < 5; i++ ) {
+ TreeItem item = new TreeItem( rootItem, SWT.NONE );
+ item.setText( "Node " + ( i + 1 ) );
+ }
+ tree.setBackground( display.getSystemColor( SWT.COLOR_RED ) );
- shell.setSize( 400, 300 );
- shell.open();
- while( !shell.isDisposed() ) {
- if( !display.readAndDispatch() )
- display.sleep();
- }
- display.dispose();
- }
+ shell.setSize( 400, 300 );
+ shell.open();
+ while( !shell.isDisposed() ) {
+ if( !display.readAndDispatch() )
+ display.sleep();
+ }
+ display.dispose();
+ }
} \ No newline at end of file

Back to the top