用 Groovy 開發 Swing 界面的框架,Griffon 0.9.5-rc1

openkk 12年前發布 | 10K 次閱讀 Groovy Swing

Griffon 是Swing開發者的一個Groovy框架。Griffon期望提供一個穩定代碼結構給Swing應用,就像Grails給web開發帶來的優勢一樣。同時,Griffon也可能提供一個替代應用框架,替代Spring RCP,Eclipse RCP和NetBeans平臺。

示例代碼:

DemoConsoleView.groovy
application(title:'DemoConsole', pack:true, locationByPlatform:true) {
    panel(border:emptyBorder(6)) {
        borderLayout()

    scrollPane(constraints:CENTER) {
        textArea(text:bind(target:model, targetProperty:'scriptSource'),
            enabled: bind {model.enabled},
            columns:40, rows:10)
    }

    hbox(constraints:SOUTH) {
        button("Execute", actionPerformed:controller.&executeScript,
            enabled: bind {model.enabled})
        hstrut(5)
        label("Result:")
        hstrut(5)
        label(text:bind {model.scriptResult})
    }
}

}</pre></strong>

Griffon 團隊今天發布了 Griffon 0.9.5-rc1,Griffon 是Swing開發者的一個Groovy框架。Griffon期望提供一個穩定代碼結構給Swing應用,就像Grails給web開發帶來的優勢一樣。同 時,Griffon也可能提供一個替代應用框架,替代Spring RCP,Eclipse RCP和NetBeans平臺。

該版本修復的 bug 列表請看:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11833&version=17352

完整的發行說明:here.

下載地址:download page

</div>

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!