src/Pure/General/swing.scala
author wenzelm
Mon, 29 Dec 2008 20:06:31 +0100
changeset 29202 2454172eddae
child 29649 8b0c1397868e
permissions -rw-r--r--
Swing utilities.

/*  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 })
}