use SwingApplication instead of deprecated GUIApplication;
authorwenzelm
Wed, 05 May 2010 23:22:11 +0200
changeset 36678 49918c180e8c
parent 36677 1225dd15827d
child 36679 ac021aed685e
use SwingApplication instead of deprecated GUIApplication;
src/Pure/System/gui_setup.scala
--- a/src/Pure/System/gui_setup.scala	Wed May 05 23:09:34 2010 +0200
+++ b/src/Pure/System/gui_setup.scala	Wed May 05 23:22:11 2010 +0200
@@ -12,15 +12,13 @@
 import scala.swing.event._
 
 
-object GUI_Setup extends GUIApplication
+object GUI_Setup extends SwingApplication
 {
-  def main(args: Array[String]) =
+  def startup(args: Array[String]) =
   {
-    Swing_Thread.later {
-      UIManager.setLookAndFeel(Platform.look_and_feel)
-      top.pack()
-      top.visible = true
-    }
+    UIManager.setLookAndFeel(Platform.look_and_feel)
+    top.pack()
+    top.visible = true
   }
 
   def top = new MainFrame {