Skip to content

Org.eclipse.swt.layout.GridLayout

Refresh Layout

프로그램 런타임에 Button 등의 Widget을 추가하면 정상적으로 Layout 배치가 되지 않는 현상을 볼 수 있다.
이러한 현상을 해결하기 위하여 Shell객체의 layout()메서드를 사용하면 된다.

Button s = new Button(c, SWT.PUSH);
// ...
shell.layout(new Control[] { s });

Favorite site