Skip to content

Commit bdc4bba

Browse files
committed
Updated the SWT Gridlayout code formating
1 parent 9b4def2 commit bdc4bba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.example.swt.widgets/src/com/example/swt/widgets/GridLayoutSWT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public static void main(String[] args) {
3232
label = new Label(shell, SWT.BORDER);
3333
label.setText("This is a label");
3434
// Create new layout data
35-
GridData data = new GridData(GridData.FILL, GridData.BEGINNING, true,
35+
GridData data = new GridData(SWT.FILL, SWT.LEFT, true,
3636
false, 2, 1);
3737
label.setLayoutData(data);
3838

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, false, 2,
42+
data = new GridData(SWT.FILL, SWT.LEFT, true, false, 2,
4343
1);
4444
data.horizontalSpan = 2;
4545
label.setLayoutData(data);
@@ -48,7 +48,7 @@ public static void main(String[] args) {
4848
Button b = new Button(shell, SWT.PUSH);
4949
b.setText("New Button");
5050

51-
data = new GridData(GridData.END, GridData.BEGINNING, false, false, 2,
51+
data = new GridData(SWT.BOTTOM, SWT.LEFT, false, false, 2,
5252
1);
5353
b.setLayoutData(data);
5454

0 commit comments

Comments
 (0)