提交 ab157aa0 编写于 作者: M miroslawzn

6813208: pageDialog throws NPE from applet

Reviewed-by: ant, minqi
上级 17f0d483
......@@ -35,6 +35,7 @@ import java.util.ResourceBundle;
import java.util.MissingResourceException;
import java.util.Vector;
import sun.awt.AppContext;
import sun.awt.CausedFocusEvent;
import sun.awt.AWTAccessor;
public class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
......@@ -252,6 +253,14 @@ public class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
boolean focusedWindowChangeAllowed) {
return false;
}
public boolean requestFocus
(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
{
return false;
}
void start() {}
public void beginValidate() {}
public void endValidate() {}
......
......@@ -31,6 +31,7 @@ import java.awt.peer.ComponentPeer;
import java.awt.dnd.DropTarget;
import java.util.Vector;
import sun.awt.AppContext;
import sun.awt.CausedFocusEvent;
import sun.awt.AWTAccessor;
public class WPrintDialogPeer extends WWindowPeer implements DialogPeer {
......@@ -131,6 +132,15 @@ public class WPrintDialogPeer extends WWindowPeer implements DialogPeer {
public boolean requestFocus(boolean temporary, boolean focusedWindowChangeAllowed) {
return false;
}
public boolean requestFocus
(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
{
return false;
}
public void updateFocusableWindowState() {}
void start() {}
public void beginValidate() {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册