|
||||
關(guān)注測試,也關(guān)注成長 |
公告
日歷
統(tǒng)計
導(dǎo)航常用鏈接留言簿(17)隨筆分類
隨筆檔案
搜索最新評論
閱讀排行榜評論排行榜 |
作者:幻
該文非常優(yōu)秀,個人認(rèn)為做入門教材再好不過。 1。 SWT/JFace開發(fā)入門指南(一) http://blog.csdn.net/jayliu/services/trackbacks/367757.aspx 注:添加的庫文件,swt.jar的內(nèi)容有所出入,我的路徑是//eclipse/plugins/org.eclipse.swt.win32_3.0.1/ws/win32/swt.jar 2。 SWT/JFace開發(fā)入門指南(二) http://blog.csdn.net/jayliu/services/trackbacks/368099.aspx 注:文中英文引用的漢語翻譯 “Applications which are built with SWT will almost always require only a single display. In particular, some platforms which SWT supports will not allow more than one active display. In other words, some platforms do not support creating a new display if one already exists that has not been sent the dispose() message.”
swt應(yīng)用通常只需一個單一的display。而支持swt的一些平臺根本就不允許多個活動的display。換句話說,在現(xiàn)存的display沒有dispose之前,根本就不允許創(chuàng)建新的display。 shell.setText("Labels");//這個寫在Form上嘍 還好有第二個更簡單的使用adapter改良方法,所以沒成功也就沒有多加注意。 時間不等人。研究工作少做一點,等深入了解后會慢慢明白的。 此外_shell的get、set方法和變量名不對應(yīng),我的習(xí)慣是寫了變量就直接Alt+ sr,所以生成的方法名和變量名都是對應(yīng)的。不知道這個算不算一個小技巧: )
評論:
|
![]() |
|
Copyright © Cinderella | Powered by: 博客園 模板提供:滬江博客 |