blob: 6b1f2fe12f31a077aa2d919818ccd86252e39146 (
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
24
|
/*
* Graphyx
* copyright (c) 2009 Jakob Odersky
* made available under the MIT License
*/
package graphyx.gui
import graphyx._
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
}
|