Swing開發框架 Griffon 0.9.4 發布

openkk 13年前發布 | 11K 次閱讀 Java

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

示例代碼:

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})
        }
    }
}

修復的bug列表請看 [http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11833&version=17638].
完整的發行說明請看 here.

下載頁面:download page.

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