1 16 17 18 package swingwt.awt; 19 20 import swingwtx.swing.*; 21 22 32 public class EventQueue { 33 34 public EventQueue() { 35 } 36 37 public static boolean isDispatchThread(Thread t) { 38 return t.equals(SwingWTUtils.getDisplay().getThread()); 39 } 40 41 public static AWTEvent getCurrentEvent() { 42 return null; 43 } 44 45 public static long getMostRecentEventTime() { 46 return System.currentTimeMillis(); 47 } 48 49 public static void invokeAndWait(Runnable run) throws InterruptedException { 50 SwingUtilities.invokeAndWait(run); 51 } 52 53 public static void invokeLater(Runnable run) { 54 SwingUtilities.invokeLater(run); 55 } 56 57 } 58 | Popular Tags |