< prev index next >

src/share/classes/java/awt/SequencedEvent.java

Print this page

        

*** 102,112 **** if (getFirst() != this) { if (EventQueue.isDispatchThread()) { EventDispatchThread edt = (EventDispatchThread) Thread.currentThread(); ! edt.pumpEvents(ID, () -> !SequencedEvent.this.isFirstOrDisposed()); } else { while(!isFirstOrDisposed()) { synchronized (SequencedEvent.class) { try { SequencedEvent.class.wait(1000); --- 102,116 ---- if (getFirst() != this) { if (EventQueue.isDispatchThread()) { EventDispatchThread edt = (EventDispatchThread) Thread.currentThread(); ! edt.pumpEvents(SentEvent.ID, new Conditional() { ! public boolean evaluate() { ! return !SequencedEvent.this.isFirstOrDisposed(); ! } ! }); } else { while(!isFirstOrDisposed()) { synchronized (SequencedEvent.class) { try { SequencedEvent.class.wait(1000);
< prev index next >