成都网站建设设计

将想法与焦点和您一起共享

Griffon0.9.5-rc1用Groovy开发Swing界面

Griffon 团队今天发布了 Griffon 0.9.5-rc1,Griffon 是Swing开发者的一个Groovy框架。Griffon期望提供一个稳定代码结构给Swing应用,就像Grails给web开发带来的优势一样。同 时,Griffon也可能提供一个替代应用框架,替代Spring RCP,Eclipse RCP和NetBeans平台。

成都创新互联公司主营广东网站建设的网络公司,主营网站建设方案,成都app开发,广东h5微信小程序开发搭建,广东网站营销推广欢迎广东等地区企业咨询

该版本修复的 bug 列表请看:

http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11833&version=17352

完整的发行说明:here.

示例代码:

 
 
 
  1. application(title:'DemoConsole', pack:true, locationByPlatform:true) {
  2.     panel(border:emptyBorder(6)) {
  3.         borderLayout()
  4.         scrollPane(constraints:CENTER) {
  5.             textArea(text:bind(target:model, targetProperty:'scriptSource'),
  6.                 enabled: bind {model.enabled},
  7.                 columns:40, rows:10)
  8.         }
  9.         hbox(constraints:SOUTH) {
  10.             button("Execute", actionPerformed:controller.&executeScript,
  11.                 enabled: bind {model.enabled})
  12.             hstrut(5)
  13.             label("Result:")
  14.             hstrut(5)
  15.             label(text:bind {model.scriptResult})
  16.         }
  17.     }
  18. }

下载地址:download page


本文题目:Griffon0.9.5-rc1用Groovy开发Swing界面
分享网址:http://chengdu.cdxwcx.cn/article/cdeipps.html