equal
deleted
inserted
replaced
33 import java.awt.event.WindowEvent; |
33 import java.awt.event.WindowEvent; |
34 import java.awt.event.KeyEvent; |
34 import java.awt.event.KeyEvent; |
35 import java.awt.image.*; |
35 import java.awt.image.*; |
36 import java.awt.TrayIcon; |
36 import java.awt.TrayIcon; |
37 import java.awt.SystemTray; |
37 import java.awt.SystemTray; |
|
38 import java.awt.event.InputEvent; |
38 import java.net.URL; |
39 import java.net.URL; |
39 import java.util.*; |
40 import java.util.*; |
40 import java.util.concurrent.TimeUnit; |
41 import java.util.concurrent.TimeUnit; |
41 import java.util.concurrent.locks.Condition; |
42 import java.util.concurrent.locks.Condition; |
42 import java.util.concurrent.locks.Lock; |
43 import java.util.concurrent.locks.Lock; |
576 } |
577 } |
577 }, PeerEvent.ULTIMATE_PRIORITY_EVENT); |
578 }, PeerEvent.ULTIMATE_PRIORITY_EVENT); |
578 postEvent(targetToAppContext(e.getSource()), pe); |
579 postEvent(targetToAppContext(e.getSource()), pe); |
579 } |
580 } |
580 |
581 |
581 private static final Lock flushLock = new ReentrantLock(); |
582 protected static final Lock flushLock = new ReentrantLock(); |
582 private static boolean isFlushingPendingEvents = false; |
583 private static boolean isFlushingPendingEvents = false; |
583 |
584 |
584 /* |
585 /* |
585 * Flush any pending events which haven't been posted to the AWT |
586 * Flush any pending events which haven't been posted to the AWT |
586 * EventQueue yet. |
587 * EventQueue yet. |
1116 } |
1117 } |
1117 return c; |
1118 return c; |
1118 } |
1119 } |
1119 |
1120 |
1120 /** |
1121 /** |
|
1122 * Returns key modifiers used by Swing to set up a focus accelerator key stroke. |
|
1123 */ |
|
1124 public int getFocusAcceleratorKeyMask() { |
|
1125 return InputEvent.ALT_MASK; |
|
1126 } |
|
1127 |
|
1128 /** |
1121 * Returns a new input method window, with behavior as specified in |
1129 * Returns a new input method window, with behavior as specified in |
1122 * {@link java.awt.im.spi.InputMethodContext#createInputMethodWindow}. |
1130 * {@link java.awt.im.spi.InputMethodContext#createInputMethodWindow}. |
1123 * If the inputContext is not null, the window should return it from its |
1131 * If the inputContext is not null, the window should return it from its |
1124 * getInputContext() method. The window needs to implement |
1132 * getInputContext() method. The window needs to implement |
1125 * sun.awt.im.InputMethodWindow. |
1133 * sun.awt.im.InputMethodWindow. |