I want to know how to navigate between panels in scala swinng. the current code I have is:
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"
}
I want the buttonStart button to take me to another frame that I define in another class. How exactly do I implement that in scala. I get a recursive value error from what I have above.