爪哇島騎士
爪哇島騎士
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
爪哇島騎士
閱讀(118)
評論(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(118)
2.?Test(107)
評論排行榜
1.?tEST2(0)
2.?Test(0)
主站蜘蛛池模板:
新巴尔虎左旗
|
静宁县
|
阳高县
|
浠水县
|
栾川县
|
禹城市
|
泸西县
|
铁力市
|
安陆市
|
万盛区
|
德令哈市
|
木里
|
辽宁省
|
聊城市
|
泌阳县
|
平乐县
|
安庆市
|
盱眙县
|
马公市
|
施甸县
|
老河口市
|
西平县
|
德清县
|
白银市
|
芦山县
|
汤原县
|
宁陕县
|
安达市
|
旬阳县
|
龙江县
|
沈丘县
|
泽普县
|
怀宁县
|
醴陵市
|
三台县
|
莎车县
|
西青区
|
马公市
|
城步
|
中卫市
|
韩城市
|