Java界面开发工具WindowBuilder

Java界面开发工具WindowBuilder

浏览:6272

在项目要进行最终界面展示开发时,又得回到熟悉而久违的的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工具。

 

教程  -  https://eclipse.org/windowbuilder/documentation.php

教程目录如下:

 

用户界面:

  • 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.7 (Indigo)
    http://dl.google.com/eclipse/inst/d2wbpro/latest/3.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

具体详见:https://eclipse.org/windowbuilder/

WindowBuilder用户开发界面展示

与一些设计良好的可视化开发工具一样,Windowbuilder支持控件拖放,源代码直接管理,以及结构视图。

设计视图

支持控件拖放,可视化布局,数据绑定

 

源码视图

支持源码查看,修改,可以从控件直接定位到源码对应位置

 

结构视图

包含控件面板,结构树面板,资源数据面板,定义各种参数属性。

 

WindowBuilder英文官方开发介绍文档

官方在线文档地址:https://eclipse.org/windowbuilder/

里面介绍十分详细,当然对于各种控件设计,SWT,图形API想要了解的话,可以参考JDK

 

 


频道:Java
扫描本文章二维码可手机访问: