Griffon 0.9.5-rc1 用Groovy開發Swing界面
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.
示例代碼:
- 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})
- }
- }
- }
下載地址:download page
原文鏈接:http://www.oschina.net/news/25726/griffon-0-9-5-rc1
【編輯推薦】