1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 /** @author Bryce McKinlay */
11 /* Status: believed complete, but untested. */
15 class EventDispatchThread extends Thread
17 private static int dispatchThreadNum = 1;
19 private EventQueue queue;
21 EventDispatchThread(EventQueue queue)
24 setName("AWT-EventQueue-" + dispatchThreadNum++);
26 setPriority(NORM_PRIORITY + 1);
35 AWTEvent evt = queue.getNextEvent();
36 queue.dispatchEvent(evt);
40 System.err.println("Exception during event dispatch:");
41 x.printStackTrace(System.err);