浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2006年12月2日

摘要: 学习了一下JNI,发表文章的时候不知道该选什么好了,不知道JNI应该属于那个范畴^_^。 1.简介 JNI是Java Native Interface的缩写,它的设计目的是: The standard Java class library may not support the platform-dependent features needed by your applicat... 阅读全文
posted @ 2006-12-02 23:02 浙林龙哥 阅读(2302) 评论(0) 推荐(0)

摘要: 如果要在程序中另开一个线程,并且要在这个线程内操作SWT控件,那只能使用display.asyncExec(runnable)来执行这个线程。如果要让线程暂时睡眠,可以写: if (!display.readAndDispatch()) display.sleep(); 阅读全文
posted @ 2006-12-02 21:22 浙林龙哥 阅读(567) 评论(0) 推荐(0)

摘要: public class Test{ private Shell sShell = null; /** * This method initializes sShell */ private void createSShell() { sShell = new Shell(); sShell.setLayout(gridLayout7); sShell.setSize(new P... 阅读全文
posted @ 2006-12-02 21:10 浙林龙哥 阅读(885) 评论(0) 推荐(0)