SWT/Jface Decorations 可以内嵌窗口 很神奇的
来源:互联网 发布:c语言图形化编程 编辑:程序博客网 时间:2024/05/05 11:20
/**
* @Description: TODO
* @author zouxs
* @date 2012-10-17
*/
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Decorations;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class HelloWorldDecorations {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Hello World");
shell.setSize(200, 100);
FillLayout layout = new FillLayout();
shell.setLayout(layout);
Decorations deco = new Decorations(shell,SWT.BORDER|SWT.MIN);
Label l1 = new Label(shell, SWT.BORDER);
l1.setText("Hello World");
// shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
效果如下:
- SWT/Jface Decorations 可以内嵌窗口 很神奇的
- SWT/Jface 窗口的样式
- java SWT /JFace 窗口 剧中
- SWT/JFace的对话框
- SWT/JFace设置窗口位于屏幕中间
- swt/jface的事件模型
- SWT/JFACE学习的积累
- Swt/Jface listviewer的实现
- Swt/Jface treeViewer的使用
- Swt/Jface treeViewer的使用
- Swt/Jface listviewer的实现
- SWT-JFace开发的利器
- Swt/Jface treeViewer的使用
- Swt/Jface listviewer的实现
- Swt/Jface treeViewer的使用
- SWT/JFACE
- JFace/SWT
- SWT Jface
- 广州批捕5名涉日游行参与打砸闹事者-广州-涉日游行-打砸闹事
- Android构建boot.img(一):root目录与ramdisk.img的生成
- 多服务器共享session的方法
- java中参数的传递
- xcode调试技巧 part-1
- SWT/Jface Decorations 可以内嵌窗口 很神奇的
- MPI_Send的缓冲区大小问题
- Linux下软件的安装与卸载(2)
- win7系统中, Microsoft Office Word已停止工作
- Win32 DLL和MFC DLL 中封装对话框<转>
- 重用eclipse中的preference
- J2EE技术开发概述
- 透彻明白红黑树(3)
- Callback 函数