static boolean isDispatchThread()
public static boolean isDispatchThread()
  static boolean isDispatchThread()  {    EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue();     return (Thread.currentThread() == eq.dispatchThread);  }