scala.swing.GUIApplication.scala Maven / Gradle / Ivy
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2007-2010, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.swing
import event.Event
import javax.swing._
/**
* Convenience class with utility methods for GUI applications.
*/
@deprecated("Use SwingApplication instead") class GUIApplication {
/**
* Called before the GUI is created. Override to customize.
*/
def init() {}
/**
* Initializes the framework and runs the given program.
*/
def run(prog: => Unit) = Swing.onEDT { init(); prog }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy