juaner's Blog

千里之行,始于足下。

Eclipse3.6.2安装SWT Designer过程详解

juaner posted @ Wed, 09 Nov 2011 20:47:09 +0800 in Java , 6993 readers

一、安装。

打开Eclipse,Help->Install New Software,出现下面的对话框,利用ADD添加http://dl.google.com/eclipse/inst/d2wbpro/latest/3.6进行在线安装,

 
如果连接成功则如下图接,全部选中,继续安装即可

 

最后,安装成功之后,会提示重启Eclipse,重启之后在window下的preferences菜单下可以找到WindowBuilder。

到这里安装已经完成。

 二、新建一个SWT应用程序,测试,

     首先运行Eclipse,依次选择File→New→Other,如图1所示:

 

图1

弹出窗口如图2所示:

图2

在图2所示窗口中依次选择WindowBuilder→SWT Designer→SWT/Jface Java Project,如图3所示:

 

图3

点击Next,打开窗口如图4所示:

图4

在图4标记处输入Project name,点击Finish,就创建了一个SWT/Jface工程。

在Test工程里新建一个包,包名自己指定,取名pkg,建包的过程就不说了。接下来就在这个包里创建窗口类。

右击包名pkg,选择New→Other,打开图5所示窗口:

图5

依次选择Window Builder→SWT Designer→SWT→Application Window,点击Next,输入窗口名(这里输入Main),其他的取默认,点击Finish之后,Eclipse就自动生成窗口类的代码,如图6所示:

图6

图6所示的是Main窗口的源代码,点击图6中的Design,就进入可视化设计了,如图7:

图7

三、其他版本的eclipse可以进行相似的安装,如下所示:

 现在swt designer的一部分已经并入eclipse3.7。剩余部分请在eclipse中安装如下地址中的剩余插件:http://download.eclipse.org/windowbuilder/WB/release/R201106211200/3.7/ 这是给eclipse3.7的。

Eclipse 3.6 (Helios)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.6

Eclipse 3.5 (Galileo)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.5

Eclipse 3.4 (Ganymede)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.4

 

参考文章

1、雨人的博客:http://licaiyuren.blog.163.com/blog/static/6965483020115179223721/

2、http://hi.baidu.com/nebulasoft/blog/item/d582802b62f093f299250ad5.html

3、http://whui0110.iteye.com/blog/1168780

附:Eclipse3.6.2中SWT Designer的安装与破解 http://geminiyoung.iteye.com/blog/949256

Avatar_small
小红帽 said:
Tue, 21 Feb 2012 16:44:36 +0800

写的非常之详细。鼓掌!!!

Avatar_small
AAA said:
Thu, 30 Dec 2021 18:45:35 +0800

Hi! I understand this is kind of off-topic but I had to ask. Does managing a well-established blog like yours require a lot of work? I am completely new to operating a blog however I do write in my diary daily. I’d like to start a blog so I can share my personal experience and views online. Please let me know if you have any kind of suggestions or tips for new aspiring blog owners. Thankyou! 토토사이트

Avatar_small
AAA said:
Wed, 16 Feb 2022 03:01:39 +0800 I'm really happy to find this site and did enjoy reading useful articles posted here. The ideas of the author was awesome, thanks for the share. 토토사이트
Avatar_small
AAA said:
Mon, 28 Mar 2022 03:52:40 +0800

very good post, i surely love this fabulous website, carry on it Licensed Clinical Social Workers

Avatar_small
AAA said:
Fri, 27 May 2022 22:56:19 +0800

Nice post. I find out some thing tougher on various blogs everyday. Most commonly it is stimulating to learn to read content from other writers and exercise a specific thing at their store. I’d would prefer to apply certain while using the content on my own blog whether or not you don’t mind. Natually I’ll supply you with a link on your own internet blog. Thank you for sharing. 먹튀검증

Avatar_small
AAA said:
Sat, 04 Jun 2022 23:28:30 +0800 I enjoy looking through and I conceive this website got some truly useful stuff on it! . 手機配件
Avatar_small
AAA said:
Tue, 14 Jun 2022 00:31:49 +0800

My friend sent me here and I thought I’d say hi, great blog. 手機回收

Avatar_small
meidir said:
Mon, 03 Oct 2022 20:07:33 +0800

Hi there! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be book-marking and checking back often! iPhone 14

Avatar_small
meidir said:
Sat, 05 Nov 2022 01:53:02 +0800

I am very happy to read this. This is the kind of info that needs to be given and not the accidental misinformation that is at the other blogs. Appreciate your sharing this greatest doc. 카지노사이트

Avatar_small
meidir said:
Sat, 19 Nov 2022 04:30:33 +0800

I discovered your blog site on the search engines and check several of your early posts. Preserve within the really good operate. I recently extra your Feed to my MSN News Reader. Looking for toward reading much more of your stuff at a later time!… 온라인카지노


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter