diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/swing/scala/swing/SimpleGUIApplication.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/swing/scala/swing/SimpleGUIApplication.scala b/src/swing/scala/swing/SimpleGUIApplication.scala index 16debc9d21..200d324a47 100644 --- a/src/swing/scala/swing/SimpleGUIApplication.scala +++ b/src/swing/scala/swing/SimpleGUIApplication.scala @@ -10,8 +10,9 @@ abstract class SimpleGUIApplication extends GUIApplication { def top: Frame def main(args: Array[String]) = run { - top.pack() - top.visible = true + val t = top + t.pack() + t.visible = true } def resourceFromClassloader(path: String): java.net.URL = |