summaryrefslogtreecommitdiff
path: root/src/swing/scala/swing/MainFrame.scala
blob: 85ce0755aca110e7c27fe69f069f400c01d31ffa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2007-2013, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */



package scala.swing

import event._

/**
 * A frame that can be used for main application windows. Shuts down the
 * framework and quits the application when closed.
 */
class MainFrame(gc: java.awt.GraphicsConfiguration = null) extends Frame(gc) {
  override def closeOperation() { sys.exit(0) }
}