在项目要进行最终界面展示开
发时,又得回到熟悉而久违的的SWT/JFACE,继而追寻Eclipse的优秀的WYSIWYG插件WindowBuilder(没用WB之前都是手工敲代码,并界面排版),却惊喜的发现,不用再漫天搜查注册码,如今WindowBuilder的Java/Ajax工具开发商Instantiations已经于2010年8月被Google给收购了,WindowBuilder也作为免费工具开放,强大的Google!
并传闻Google这一收购用意不仅在GWT设计工具,更在于Ajax和Java方面,Google所有网页应用都部署了大量的Ajax,而Android应用则使用Java来创建。
WindowBuilder简介
WindowBuilder是一款基于Eclipse平台的双向Java的GUI设计插件式的软件。具备SWT/JFACE开发、Swing开发及GWT 开发三大功能,是一款不可多得的Java体系中的WYSIWYG工具。
基本界面视图如下:
WindowBuilder目前最新版是9.0,各版本历史见:http://code.google.com/javadevtools/wbpro/whatsnew/index.html
用户界面:
- Design View – the main visual layout area.
- Source View – write code and review the generated code
- Structure View – composed of the Component Tree and the Property Pane.
- Component Tree – shows the hierarchical relationship between all of the components.
- Property Pane – displays properties and events of the selected components.
- Palette – provides quick access to toolkit-specific components.
- Toolbar – provides access to commonly used commands.
- Context Menu – provides access to commonly used commands
主要特性:
- Bi-directional Code Generation – read and write almost any format and reverse-engineer most hand-written code
- Internationalization (i18n) / Localization – externalize component strings, create and manage resource bundles.
- Custom Composites & Panels – create custom, reusable components.
- Factories – create custom factory classes and methods.
- Visual Inheritance – create visual component hierarchies.
- Event Handling – add event handlers to your components.
- Menu Editing – visually create and edit menubars, menu items and popup menus.
- Morphing – convert one component type into another.
WindowBuilder安装
目前只能通过windowbuilder更新地址在线安装,并基于Eclipse/MyEclipse进行安装:
- 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
具体详见:http://code.google.com/javadevtools/download-wbpro.html
WindowBuilder用户开发界面展示
与一些设计良好的可视化开发工具一样,Windowbuilder支持控件拖放,源代码直接管理,以及结构视图。
设计视图
支持控件拖放,可视化布局,数据绑定
源码视图
支持源码查看,修改,可以从控件直接定位到源码对应位置
结构视图
包含控件面板,结构树面板,资源数据面板,定义各种参数属性。
WindowBuilder英文官方开发介绍文档
官方在线文档地址:http://code.google.com/javadevtools/wbpro/index.html
里面介绍十分详细,当然对于各种控件设计,SWT,图形API想要了解的话,可以参考JDK,或者:
http://www.java2s.com/CN/Code/Java/SWT-JFace-Eclipse/




aw
没用过,,,看了下开发界面,感觉还不错~
恩,这是Java体系中UI方面的,而且还是两派系流AWT/SWING与SWT/JFACE中的一派,这是一个小原型demo,回头给你展示一个更cute的:)
对swing非常感兴趣,可是windowbuilder怎么用的,一点都不熟悉啊,有没有中文资料啊,或者发给俺 一个demo谢谢,
恩,对Swing感兴趣的话,其实可以用Netbeans这个IDE,里面直接有丰富的原生态的SWING界面可视化开发支持,那个资料应该更丰富,swing的demo可见:http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm
不过你所说的windowbuilder无非就是在eclipse安装好,然后再新建相关的工程。
刚装了,但是试实例的时候,发现UI显示正常,但按钮等的事件无响应,不知道你有没有什么办法解决?