mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-05 04:31:36 +00:00
6833019: KeyboardFocusManager.getCurrentKeyboardFocusManager() throws unspecified HeadlessException
Reviewed-by: art
This commit is contained in:
parent
55c50f50d0
commit
b02a9e2e05
@ -179,9 +179,15 @@ public class HeadlessToolkit extends Toolkit
|
||||
throw new HeadlessException();
|
||||
}
|
||||
|
||||
public KeyboardFocusManagerPeer createKeyboardFocusManagerPeer(KeyboardFocusManager manager)
|
||||
throws HeadlessException {
|
||||
throw new HeadlessException();
|
||||
public KeyboardFocusManagerPeer createKeyboardFocusManagerPeer(KeyboardFocusManager manager) {
|
||||
// See 6833019.
|
||||
return
|
||||
new KeyboardFocusManagerPeer() {
|
||||
public Window getCurrentFocusedWindow() { return null; }
|
||||
public void setCurrentFocusOwner(Component comp) {}
|
||||
public Component getCurrentFocusOwner() { return null; }
|
||||
public void clearGlobalFocusOwner(Window activeWindow) {}
|
||||
};
|
||||
}
|
||||
|
||||
public TrayIconPeer createTrayIcon(TrayIcon target)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user