< prev index next >

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

Print this page

    *** 133,147 ****
                  if (getFirst() != this) {
                      if (EventQueue.isDispatchThread()) {
                          if (Thread.currentThread() instanceof EventDispatchThread) {
                              EventDispatchThread edt = (EventDispatchThread)
                                      Thread.currentThread();
    !                         edt.pumpEvents(SentEvent.ID, new Conditional() {
    !                             public boolean evaluate() {
    !                                 return !SequencedEvent.this.isFirstOrDisposed();
    !                             }
    !                         });
                          } else {
                              if (fxAppThreadIsDispatchThread) {
                                  fxCheckSequenceThread.start();
                                  try {
                                      // check if event is dispatched or disposed
    --- 133,143 ----
                  if (getFirst() != this) {
                      if (EventQueue.isDispatchThread()) {
                          if (Thread.currentThread() instanceof EventDispatchThread) {
                              EventDispatchThread edt = (EventDispatchThread)
                                      Thread.currentThread();
    !                         edt.pumpEvents(() -> !SequencedEvent.this.isFirstOrDisposed());
                          } else {
                              if (fxAppThreadIsDispatchThread) {
                                  fxCheckSequenceThread.start();
                                  try {
                                      // check if event is dispatched or disposed

< prev index next >