财务编程软件
import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; /* * 创建日期 2007-8-28 * * TODO 要更改此生成的文件的模板,请转至 * 窗口 - 首选项 - Java - 代码样式 - 代码模板 */ /** * @author zj * * TODO 要更改此生成的类型注释的模板,请转至 * 窗口 - 首选项 - Java - 代码样式 - 代码模板 */ public class terr { public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(); shell.setLayout(new FillLayout(SWT.HORIZONTAL)); shell.setText("FillLayout test"); { final Button button = new Button(shell, SWT.NONE); button.setText("button"); } { final Group group = new Group(shell, SWT.NONE); group.setLayout(new FillLayout(SWT.VERTICAL)); group.setText("Group"); { final Button button = new Button(group, SWT.NONE); button.setText("button 1"); } { final Button button = new Button(group, SWT.NONE); button.setText("button 2"); } { final Button button = new Button(group, SWT.NONE); button.setText("button 3"); } } { final Text text = new Text(shell, SWT.BORDER | SWT.MULTI); text.setText("text"); } shell.open(); shell.layout(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } }
- 1
- 2
- 粉丝: 0
- 资源: 4
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 农村信用社联合社计算机信息系统投产与变更管理办.docx
- 农村信用社联合社计算机信息系统数据管理办法.docx
- 利用SPSS作临床效度分析线上计算网站介绍-医学研究部统计谘.(医学PPT课件).ppt
- 利用Zabbix监控mysqldump定时备份数据库状态.docx
- 利用计算机解决问题的基本过程.doc
- 化工铁路通信工程总结.doc
- 北京大学网络教育软件工程作业.docx
- 医药公司(连锁店)计算机操作规程未新系统的自行按照旧制修改-新系统过制的编号加修模版.doc
- 医药公司(连锁店)计算机系统操作规程模版.doc
- 医药连锁门店计算机系统的操作和管理程序未新系统的自行按照旧制修改-新系统过制的编号加修模版.docx