1
我想知道如何在scala swinng中的面板之间导航。我现在的代码是:在scala中的面板之间导航
val top = new MainFrame {
title = "Predator and Prey Agent simulation"
val buttonExit = new Button {
text = "Exit"
//foo
}
val buttonStart = new Button {
top.visible = false
text = "Play"
}
我想buttonStart按钮带我到另一个框架,我在另一个类中定义。我到底该如何在scala中实现它。我从上面得到了一个递归值错误。