// override XWindowPeer's method to let the embedded frame to block
// the containing window
public void setModalBlocked(Dialog blocker, boolean blocked) {
super.setModalBlocked(blocker, blocked);
EmbeddedFrame frame = (EmbeddedFrame)target;
frame.notifyModalBlocked(blocker, blocked);
}