【发布时间】:2012-01-21 10:25:10
【问题描述】:
我在关闭 Scala 摆动框架时遇到问题。这是我的退出按钮的代码
val buttonExit = new Button {
text = "Exit"
action = Action("Exit") {
WorldActor.run(false)
closer
}
}
closer函数定义为:
def closer (){
top.close
}
其中 top 是 MainFrame。每次我尝试关闭时,它都会暂停并停止响应。
【问题讨论】:
-
WorldActor是 scalaActor吗?
标签: scala action scala-swing