< prev index next >

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

Print this page

    @@ -133,15 +133,11 @@
                 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();
    -                            }
    -                        });
    +                        edt.pumpEvents(() -> !SequencedEvent.this.isFirstOrDisposed());
                         } else {
                             if (fxAppThreadIsDispatchThread) {
                                 fxCheckSequenceThread.start();
                                 try {
                                     // check if event is dispatched or disposed

< prev index next >