@Override public void setModalBlocked(Dialog blocker, boolean blocked) { synchronized (getPeerTreeLock()) { if (blocked && blocker.getPeer() instanceof LWWindowPeer) { this.blocker = (LWWindowPeer) blocker.getPeer(); } else { this.blocker = null; } } platformWindow.setModalBlocked(blocked); }
@Override public void setModalBlocked(Dialog blocker, boolean blocked) { synchronized (getPeerTreeLock()) { ComponentPeer peer = AWTAccessor.getComponentAccessor().getPeer(blocker); if (blocked && (peer instanceof LWWindowPeer)) { this.blocker = (LWWindowPeer) peer; } else { this.blocker = null; } } platformWindow.setModalBlocked(blocked); }