mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 14:25:33 +00:00
6813208: pageDialog throws NPE from applet
Reviewed-by: ant, minqi
This commit is contained in:
parent
d22377ef7a
commit
2de767fbf0
@ -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() {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user