summaryrefslogtreecommitdiff
path: root/src/graphyx/gui/MainFrame.scala
blob: 89812a57683a3014a52ce8e11fdbdf2e111f6948 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * 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
  
}