package demotest;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
/**
*
* @author mositure
* label
*/
public class Test_four {
/**
* @param args
*/
public static void main(String[] args) {
//定义Display
Display display = new Display();
//创建窗口
Shell shell = new Shell(display,SWT.SHELL_TRIM);
shell.setSize(500, 400);
shell.setText("分组实列");
//设置窗口布局
shell.setLayout(new FillLayout(SWT.VERTICAL));
//在当前窗口创建分组
Group group = new Group(shell, SWT.SHADOW_ETCHED_OUT);
group.setText("设置组名");
group.setLayout(new FillLayout(SWT.VERTICAL));
//SWT.SEPARATOR 分割线 SWT.HORIZONTAL 水平分割线 SWT.VERTICAL 分割线样式:SWT.SHADOW_IN SWT.SHADOW_NONE SWT.SHADOW_OUT
Label label = new Label(group,SWT.SEPARATO
SWT进阶版-分割线
最新推荐文章于 2021-02-25 14:04:14 发布