diff options
-rw-r--r-- | src/swing/scala/swing/SimpleGUIApplication.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/swing/scala/swing/SimpleGUIApplication.scala b/src/swing/scala/swing/SimpleGUIApplication.scala index 2cc5078837..16debc9d21 100644 --- a/src/swing/scala/swing/SimpleGUIApplication.scala +++ b/src/swing/scala/swing/SimpleGUIApplication.scala @@ -9,10 +9,9 @@ import javax.swing._ abstract class SimpleGUIApplication extends GUIApplication { def top: Frame - def main(args: Array[String]) = { - SwingUtilities.invokeLater { - new Runnable { def run() { init(); top.pack(); top.visible = true } } - } + def main(args: Array[String]) = run { + top.pack() + top.visible = true } def resourceFromClassloader(path: String): java.net.URL = |