SWT
来源:互联网 发布:软件许可协议模板 编辑:程序博客网 时间:2024/05/16 04:57
How to update a GUI from another thread in Java
Use Display.asyncExec or Display.syncExec, depending on your needs.
For example, another thread might call this method to safely update a label:
private static void doUpdate(final Display display, final Label target, final String value) { display.asyncExec(new Runnable() { @Override public void run() { if (!target.isDisposed()) { target.setText(value); target.getParent().layout(); } } }); }
0 0
- SWT
- SWT
- swt
- swt
- swt
- swt
- swt
- SWT
- SWT
- SWT
- [SWT] SWT 精品文章
- [SWT]SWT 源代码下载
- SWT:SWT.Arm事件
- 关于swt
- swt-jface1
- swt-jace2
- swt-jace3
- swt-jface4
- HDU 1106(strtok的使用)
- Android 获取手机总内存和可用内存等信息
- download prerequisites from the same location as my application
- Remove Element
- SVN服务器搭建和使用(二)
- SWT
- C# FileStream和StreamWriter用法
- CentOS 6.5上使用gdb调试时出现Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686
- U盘安装Ubuntu 12.04 Server版提示“Faild to copy file from CD-ROM”的解决办法
- UVA 11920 - 0 s, 1 s and ? Marks(贪心)
- .Net琐碎知识点
- 两栏流动式布局
- Global Contrast based Salient Region Detection
- 优点汇总最自豪的事情“一”