src/Pure/General/swing.scala
author wenzelm
Fri, 02 Jan 2009 22:42:08 +0100
changeset 29323 868634981a32
parent 29202 2454172eddae
child 29649 8b0c1397868e
permissions -rw-r--r--
removed unused add_substring; back to simple list implementation;

/*  Title:      Pure/General/swing.scala
    Author:     Makarius

Swing utilities.
*/

package isabelle

import javax.swing.SwingUtilities

object Swing
{
  def now(body: => Unit) =
    SwingUtilities.invokeAndWait(new Runnable { def run = body })

  def later(body: => Unit) =
    SwingUtilities.invokeLater(new Runnable { def run = body })
}