43 |
*/ |
*/ |
44 |
class EventDispatchThread extends Thread |
class EventDispatchThread extends Thread |
45 |
{ |
{ |
46 |
private static int dispatchThreadNum = 1; |
private static int dispatchThreadNum; |
47 |
|
|
48 |
private EventQueue queue; |
private EventQueue queue; |
49 |
|
|
50 |
EventDispatchThread(EventQueue queue) |
EventDispatchThread(EventQueue queue) |
51 |
{ |
{ |
52 |
super(); |
super(); |
53 |
setName("AWT-EventQueue-" + dispatchThreadNum++); |
setName("AWT-EventQueue-" + ++dispatchThreadNum); |
54 |
this.queue = queue; |
this.queue = queue; |
55 |
setPriority(NORM_PRIORITY + 1); |
setPriority(NORM_PRIORITY + 1); |
56 |
start(); |
start(); |