summaryrefslogblamecommitdiff
path: root/src/graphyx/gui/MainFrame.scala
blob: 89812a57683a3014a52ce8e11fdbdf2e111f6948 (plain) (tree)






















                                                    
/*
 * Graphyx
 * copyright (c) 2009 Jakob Odersky
 * made available under the MIT License
*/

package graphyx.gui

import sims._
import scala.swing._

class MainFrame(container: Container) extends Frame{
  super.background = java.awt.Color.WHITE
  title = "graphyx"
  preferredSize = (1000,800)
  reactions += {
    case event.WindowClosing(w) => Graphyx.exit()
  }
  
  val mainPanel = new MainPanel(container)
  contents = mainPanel
  
}