title: Navigating between panels in scala
body: <p>I want to know how to navigate between panels in scala swinng.  the current code I have is:</p>
  
  <pre><code> 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"     
      }
  </code></pre>
  
  <p>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.  </p>