equal
deleted
inserted
replaced
30 import java.awt.peer.ComponentPeer; |
30 import java.awt.peer.ComponentPeer; |
31 import java.awt.peer.LightweightPeer; |
31 import java.awt.peer.LightweightPeer; |
32 import java.lang.reflect.Field; |
32 import java.lang.reflect.Field; |
33 import java.util.logging.Logger; |
33 import java.util.logging.Logger; |
34 import java.util.logging.Level; |
34 import java.util.logging.Level; |
|
35 import sun.awt.AWTAccessor; |
35 |
36 |
36 /** |
37 /** |
37 * The root event class for all AWT events. |
38 * The root event class for all AWT events. |
38 * This class and its subclasses supercede the original |
39 * This class and its subclasses supercede the original |
39 * java.awt.Event class. |
40 * java.awt.Event class. |
228 /* ensure that the necessary native libraries are loaded */ |
229 /* ensure that the necessary native libraries are loaded */ |
229 Toolkit.loadLibraries(); |
230 Toolkit.loadLibraries(); |
230 if (!GraphicsEnvironment.isHeadless()) { |
231 if (!GraphicsEnvironment.isHeadless()) { |
231 initIDs(); |
232 initIDs(); |
232 } |
233 } |
|
234 AWTAccessor.setAWTEventAccessor( |
|
235 new AWTAccessor.AWTEventAccessor() { |
|
236 public void setPosted(AWTEvent ev) { |
|
237 ev.isPosted = true; |
|
238 } |
|
239 }); |
233 } |
240 } |
234 |
241 |
235 private static synchronized Field get_InputEvent_CanAccessSystemClipboard() { |
242 private static synchronized Field get_InputEvent_CanAccessSystemClipboard() { |
236 if (inputEvent_CanAccessSystemClipboard_Field == null) { |
243 if (inputEvent_CanAccessSystemClipboard_Field == null) { |
237 inputEvent_CanAccessSystemClipboard_Field = |
244 inputEvent_CanAccessSystemClipboard_Field = |