public static void main(String[] args) {
DeviceData data = new DeviceData();
data.tracking = true;
Display display = new Display(data);
Shell shell = new Shell(display);
shell.open();
// String fn = Display.getCurrent().getSystemFont().getFontData()[0].getName();
// System.out.println(fn);
// if (true)
// return;
// run the event loop as long as the window is open
while (!shell.isDisposed()) {
// read the next OS event queue and transfer it to a SWT event
if (!display.readAndDispatch())
{
try {
SWTUtil.testHandleLimit((int)1e6);
} catch (Exception e) {
e.printStackTrace();
}
if (true)
break;
// if there are currently no other OS event to process
// sleep until the next OS event is available
display.sleep();
}
}
// disposes all associated windows and their components
display.dispose();
System.out.println("--- DONE ---");
}
TestHandles.java 文件源码
java
阅读 50
收藏 0
点赞 0
评论 0
项目:TranskribusSwtGui
作者:
评论列表
文章目录