Swing


          天行健 君子以自強不息

          posts - 69, comments - 215, trackbacks - 0, articles - 16
             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Swing可視化開發工具

          Posted on 2009-08-06 22:12 zht 閱讀(7410) 評論(7)  編輯  收藏 所屬分類: Swing

          對于剛接觸Swing的開發人員,由于水平所限,需要一個可視化的開發工具,來輔助理解學習和開發。也有時候是工作緊迫,需要可視化工具來提高工作效率,節省寶貴的時間。

          在此介紹下,如何可視化開發Swing組件。現在Java主流的兩款開發工具NetBeans和Eclipse都提供了可視化的功能。

          一、NetBeans
          這個無需多言,Sun官方推薦的Swing開發工具,自身已經集成了可視化工具。
          下載地址:
          http://www.netbeans.org/downloads/index.html

          二、Eclipse
          Eclipse本身不提供可視化功能,需要插件來輔助。
          我了解到的,比較常用的插件有兩種
          1、Visual Editor  簡稱VE
          關于安裝 請參考
          http://wiki.eclipse.org/VE/Installing/Archived

          說明如下:
          VE Installation
          Make sure eclipse is close.
          Go to http://sourceforge.net/project/showfiles.php?group_id=131065&package_id=154855
          Click "Visual Editor patched as in bug 202562"
          Click org.eclipse.visualeditor-1.3.0.200709121813.zip
          Unpack the .zip file somewhere
          In that extracted folder, there is an " org.eclipse.visualeditor-1.3.0.200709121813" subdir, copy what's in that directory to your eclipse installation dir, say yes if prompted to overwrite.
          Open eclipse again and go to Window->Preferences->Java. If after expanding 'Java' you see Visual Editor at the bottom, then you are good to go.

          下載地址
          http://sourceforge.net/projects/easyeclipse/files/Various%20Patches/Visual%20Editor%20patched%20as%20in%20bug%20202562/org.eclipse.visualeditor-1.3.0.200709121813-2.zip/download

          2、jigloo
          這個以前用過,感覺還可以。
          官方網站是
          http://cloudgarden.com/jigloo/

          下載網址
          http://cloudgarden.com/jigloo/dnld_redirect.html

          安裝說明
          Please note: if you have installed 4.0 RC1 or RC2 you will need to delete these folders from the plugins and features folders in eclipse before installing version 4.0.
          Alternatively, you can download the zip file from here. Unzip it into the eclipse folder so that the structure is eclipse/plugins/com.cloudgarden.jigloo_4.0.0

           

          安裝都很簡單,建議使用link的方式來安裝Eclipse插件,方便插件管理,如下所示:
          解壓yourplugin.zip到任意目錄下,比如D:\eclipseplugins\yourplugin。
          在Eclipse的目錄下有個links文件夾,在里面新建文件,命名為anyname.link,編輯此文件,加入如下內容并保存。path = D:/eclipseplugins/yourplugin
          詳細使用,請自行搜索。

          其它還有

          jformdesigner

          官方網址:http://www.jformdesigner.com/


          Visual Swing Designer for Eclipse

          開源網址: http://code.google.com/p/visualswing4eclipse/


          WindowBuilder

          官方網址:http://www.instantiations.com/windowbuilder/


          使用可視化工具拖拽編寫Swing程序,一定要注意變量名和代碼的可讀性,否則代碼非常讓人崩潰。

          主站蜘蛛池模板: 通榆县| 古浪县| 当涂县| 宁晋县| 朔州市| 绥化市| 南充市| 泾川县| 晋中市| 灌南县| 邵阳县| 镇坪县| 正镶白旗| 缙云县| 万宁市| 昭觉县| 千阳县| 武胜县| 郯城县| 雷波县| 诏安县| 岳阳市| 漳州市| 宁蒗| 九龙县| 开封市| 曲阳县| 双城市| 湟源县| 临海市| 泽库县| 鸡东县| 卢氏县| 孟连| 莱阳市| 南开区| 达拉特旗| 长沙县| 志丹县| 甘泉县| 伊宁市|