首页 > 系统服务 > 详细

SWT.Shell

时间:2017-07-06 09:15:14      阅读:270      评论:0      收藏:0      [点我收藏+]

 

 1 import org.eclipse.swt.widgets.Display;
 2 import org.eclipse.swt.widgets.Shell;
 3 
 4 public class SWT_Shell {
 5 
 6     public static void main(String[] args) {
 7 Display display = Display.getDefault();
 8 Shell shell  = new Shell();
 9 shell.setSize(800, 600);
10 shell.setText("SWT.Shell");
11 shell.setLayout(null);
12 
13 shell.open();
14 shell.layout();
15 while (!shell.isDisposed()) {
16     if (!display.readAndDispatch()) {
17         display.sleep();
18     }
19 }
20 
21     }
22 
23 }

 

SWT.Shell

原文:http://www.cnblogs.com/the-wang/p/7124448.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!