In a Grid layout if we need to set spacing between row and column we can do it by setting the horizontal and vertical spacing property of the grid layout.
Composite composite1 = new Composite(jouWindowColumComposite, SWT.NONE); composite1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); composite1.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).spacing(0, 5).create());
Composite composite1 = new Composite(jouWindowColumComposite, SWT.NONE); composite1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); composite1.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).spacing(0, 5).create());
No comments:
Post a Comment