package demotest;
import java.util.Date;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Shell;
/**
*
* @author mositure
* 滚动条
*/
public class ScrolledCompositeTest {
/**
* @param args
*/
public static void main(String[] args) {
//创建一个display对象
Display display = new Display();
//shell是程序的主窗体
Shell shell=new Shell(display);
shell.setLayout(new FillLayout());
//设置主窗体的标题
shell.setText("Scrol
SWT进阶版-滚动条
最新推荐文章于 2023-09-07 12:24:20 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)