--- a/jdk/src/share/classes/sun/awt/SunToolkit.java Tue Mar 06 10:25:45 2012 +0800
+++ b/jdk/src/share/classes/sun/awt/SunToolkit.java Tue Mar 06 20:34:38 2012 +0000
@@ -35,6 +35,7 @@
import java.awt.image.*;
import java.awt.TrayIcon;
import java.awt.SystemTray;
+import java.awt.event.InputEvent;
import java.net.URL;
import java.util.*;
import java.util.concurrent.TimeUnit;
@@ -578,7 +579,7 @@
postEvent(targetToAppContext(e.getSource()), pe);
}
- private static final Lock flushLock = new ReentrantLock();
+ protected static final Lock flushLock = new ReentrantLock();
private static boolean isFlushingPendingEvents = false;
/*
@@ -1118,6 +1119,13 @@
}
/**
+ * Returns key modifiers used by Swing to set up a focus accelerator key stroke.
+ */
+ public int getFocusAcceleratorKeyMask() {
+ return InputEvent.ALT_MASK;
+ }
+
+ /**
* Returns a new input method window, with behavior as specified in
* {@link java.awt.im.spi.InputMethodContext#createInputMethodWindow}.
* If the inputContext is not null, the window should return it from its