@@ -24,32 +24,32 @@ public static void main(String[] args) {
2424 shell .setLayout (layout );
2525 // Create a label and a button
2626 Label label = new Label (shell , SWT .NONE );
27- label .setText ("A lable " );
27+ label .setText ("A label " );
2828 Button button = new Button (shell , SWT .PUSH );
2929 button .setText ("Press Me" );
30-
30+
3131 // Create a new label that will spam two columns
3232 label = new Label (shell , SWT .BORDER );
3333 label .setText ("This is a label" );
3434 // Create new layout data
3535 GridData data = new GridData (GridData .FILL , GridData .BEGINNING , true ,
3636 false , 2 , 1 );
3737 label .setLayoutData (data );
38-
38+
3939 // Create a new label which is used as a separator
4040 label = new Label (shell , SWT .SEPARATOR | SWT .HORIZONTAL );
4141 // Create new layout data
42- data = new GridData (GridData .FILL , GridData .BEGINNING , true ,
43- false , 2 , 1 );
44- data .horizontalSpan = 2 ;
42+ data = new GridData (GridData .FILL , GridData .BEGINNING , true , false , 2 ,
43+ 1 );
44+ data .horizontalSpan = 2 ;
4545 label .setLayoutData (data );
46-
46+
4747 // Create a right aligned button
4848 Button b = new Button (shell , SWT .PUSH );
4949 b .setText ("New Button" );
50-
51- data = new GridData (GridData .END , GridData .BEGINNING , false ,
52- false , 2 , 1 );
50+
51+ data = new GridData (GridData .END , GridData .BEGINNING , false , false , 2 ,
52+ 1 );
5353 b .setLayoutData (data );
5454
5555 Spinner spinner = new Spinner (shell , SWT .READ_ONLY );
@@ -61,35 +61,33 @@ public static void main(String[] args) {
6161 GridData gridData = new GridData (SWT .FILL , SWT .FILL , true , false );
6262 gridData .widthHint = SWT .DEFAULT ;
6363 gridData .heightHint = SWT .DEFAULT ;
64- gridData .horizontalSpan = 2 ;
64+ gridData .horizontalSpan = 2 ;
6565 spinner .setLayoutData (gridData );
66-
66+
6767 Composite composite = new Composite (shell , SWT .BORDER );
6868 gridData = new GridData (SWT .FILL , SWT .FILL , true , false );
69- gridData .horizontalSpan = 2 ;
69+ gridData .horizontalSpan = 2 ;
7070 composite .setLayoutData (gridData );
7171 composite .setLayout (new GridLayout (1 , false ));
72-
73-
72+
7473 Text text = new Text (composite , SWT .NONE );
7574 text .setText ("Testing" );
7675 gridData = new GridData (SWT .FILL , SWT .FILL , true , false );
7776 text .setLayoutData (gridData );
78-
77+
7978 text = new Text (composite , SWT .NONE );
8079 text .setText ("Another test" );
81- // gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
82- // text.setLayoutData(gridData);
80+ // gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
81+ // text.setLayoutData(gridData);
8382 Group group = new Group (shell , SWT .NONE );
8483 group .setText ("This is my group" );
8584 gridData = new GridData (SWT .FILL , SWT .FILL , true , false );
86- gridData .horizontalSpan = 2 ;
85+ gridData .horizontalSpan = 2 ;
8786 group .setLayoutData (gridData );
8887 group .setLayout (new RowLayout (SWT .VERTICAL ));
8988 text = new Text (group , SWT .NONE );
9089 text .setText ("Another test" );
91-
92-
90+
9391 shell .pack ();
9492 shell .open ();
9593 while (!shell .isDisposed ()) {
0 commit comments