Scala Library
|
|
scala/swing/SimpleGUIApplication.scala
]
abstract
class
SimpleGUIApplication
extends
GUIApplicationtop
method. Framework intialization is done by this class.
In order to conform to Swing's threading policy, never implement top or any additional
member that created Swing components as a value unless component creation happens on
the EDT (see Swing.onEDT and Swing.onEDTWait). Lazy values are okay for the same reason
if they are intialized on the EDT always.Method Summary | |
def
|
main
(args : Array[java.lang.String]) : Unit
Calls top, packs the frame, and displays it.
|
def
|
resourceFromClassloader (path : java.lang.String) : java.net.URL |
def
|
resourceFromUserDirectory (path : java.lang.String) : java.io.File |
abstract def
|
top
: Frame
A GUI application's version of the main method. Called by the default
main method implementation provided by this class.
Implement to return the top-level frame of this application.
|
Methods inherited from GUIApplication | |
init, run |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
abstract
def
top : Frame
def
main(args : Array[java.lang.String]) : Unit
def
resourceFromClassloader(path : java.lang.String) : java.net.URL
def
resourceFromUserDirectory(path : java.lang.String) : java.io.File
Scala Library
|
|