爪哇島騎士
爪哇島騎士
tEST2
import
org.eclipse.swt.SWT;
import
org.eclipse.swt.widgets.Display;
import
org.eclipse.swt.widgets.Label;
import
org.eclipse.swt.widgets.Shell;
public
class
FirstSWT
{
public
static
void
main(String[] args)
{
Display display
=
new
Display();
Shell shell
=
new
Shell(display);
Label label
=
new
Label(shell, SWT.CENTER);
label.setText(
"
Hello, World
"
);
label.setBounds(shell.getClientArea());
shell.open();
shell.setText(
"
Hello World!
"
);
while
(
!
shell.isDisposed())
{
if
(
!
display.readAndDispatch())
{
display.sleep();
}
}
display.dispose();
}
}
posted on 2009-08-11 00:16
爪哇島騎士
閱讀(117)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Powered by:
BlogJava
Copyright © 爪哇島騎士
<
2009年8月
>
日
一
二
三
四
五
六
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
導航
BlogJava
首頁
新隨筆
聯系
聚合
管理
統計
隨筆 - 2
文章 - 0
評論 - 0
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
留言簿
給我留言
查看公開留言
查看私人留言
隨筆檔案
2009年8月 (1)
2009年7月 (1)
搜索
最新評論
閱讀排行榜
1.?tEST2(117)
2.?Test(106)
評論排行榜
1.?tEST2(0)
2.?Test(0)
主站蜘蛛池模板:
湄潭县
|
南郑县
|
河曲县
|
赤水市
|
木里
|
扶沟县
|
南雄市
|
平潭县
|
大关县
|
新巴尔虎右旗
|
中江县
|
马公市
|
高密市
|
新竹县
|
吐鲁番市
|
蓬溪县
|
永仁县
|
泸西县
|
亚东县
|
凤庆县
|
阿坝
|
绥江县
|
茌平县
|
诏安县
|
内乡县
|
抚松县
|
永年县
|
同仁县
|
安岳县
|
哈尔滨市
|
兰西县
|
贵德县
|
平武县
|
柳河县
|
丰原市
|
岳阳县
|
瓮安县
|
乡宁县
|
康马县
|
安吉县
|
瑞金市
|