排除前一种方法后只能重新指望JAVA,在童鞋们的帮助下,找到了swixml的jar包,它真的能实现xml直接动态生成界面,花了两天时间熟悉它的xml书写格式,学习java的界面布局,昨天快中午的时候在swixml的官方网站http://www.swixml.org/index.html上下载的slides中的一张图吸引了俺 眼球,
在这张图里面居然是用像MFC一样拖动控件生成的界面,而且还是在eclipse里面编辑的,从图上的文字开始找,我先找oxygen这个软件,原来是一个xml编辑器,于是在http://www.oxygenxml.com/download_oxygenxml_editor.html#Eclipse官网上进行下载,下载完了以后却不知道怎么安装,注意看了一下下载页面的instruction,可以直接在eclipse里面直接装
“Update Site distribution - Eclipse 3.5/3.6
Download and Install
- Start Eclipse. Choose the menu option: Help / Install New Software.
- In the Install dialog press Add button.
- Enter the value http://www.oxygenxml.com/InstData/Editor/Eclipse/site.xml into the Location field of the Add Site dialog. Press the OK button.
- Select the checkbox corresponding to the Oxygen XML plugin and press the Next button.
- Select the Oxygen XML plugin and press the Finish button.
- At the end of the installation a confirmation dialog will inform you that the install process was completed and will ask for a restart of Eclipse. You must accept the Eclipse restart. ”
等我装完了以后才发现,其实它只是一个基于JAVA的xml编辑器,并不能满足我的要求,也许wolf paulus只是选择它作为Eclipse里面的xml编辑器而已。
难道我真的就找不到这个图形化编辑的工具了吗,于是修改各种关键词在谷歌上进行搜索,结果真的找到了,这个编辑器就是传说中的
SwixEditor
“SwixEditor is a GUI builder for SwixML forms. It is built using the Eclipse SWT technology and works as a plugin in your Eclipse installation.
Using SwixEditor, you can create complex SwixML forms visually in a 100% WYSIWYG view.SwixEditor will create valid SwixML markup for you whenever you add or delete controls, or change properties of any control.”
Using SwixEditor, you can create complex SwixML forms visually in a 100% WYSIWYG view.SwixEditor will create valid SwixML markup for you whenever you add or delete controls, or change properties of any control.”
找到官网 http://www.invivosoft.com/swixeditor,下载SwixEditor ,以为捡到宝了,心想下午把使用说明学习一下,就可以开展下一步工作了。
噩梦才刚刚开始。。。。。。。。。。。。。。。。