summaryrefslogtreecommitdiff
path: root/src/graphyx/gui/MainFrame.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphyx/gui/MainFrame.scala')
-rw-r--r--src/graphyx/gui/MainFrame.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/graphyx/gui/MainFrame.scala b/src/graphyx/gui/MainFrame.scala
new file mode 100644
index 0000000..89812a5
--- /dev/null
+++ b/src/graphyx/gui/MainFrame.scala
@@ -0,0 +1,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
+
+}