8027479: [macosx] Appletviewer is broken after 8014718
authorserb
Fri, 22 Nov 2013 15:48:22 +0400
changeset 21789 ebce9726e754
parent 21788 38ffbbef9235
child 21790 dae43c3c462d
8027479: [macosx] Appletviewer is broken after 8014718 Reviewed-by: anthony, leonidr
jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java
--- a/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Fri Nov 22 10:48:00 2013 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Fri Nov 22 15:48:22 2013 +0400
@@ -379,10 +379,6 @@
         return windowPeer.getPlatformWindow();
     }
 
-    protected AppContext getAppContext() {
-        return SunToolkit.targetToAppContext(getTarget());
-    }
-
     // ---- PEER METHODS ---- //
 
     // Just a helper method
@@ -1162,8 +1158,8 @@
     /**
      * Post an event to the proper Java EDT.
      */
-    public void postEvent(AWTEvent event) {
-        SunToolkit.postEvent(getAppContext(), event);
+    public void postEvent(final AWTEvent event) {
+        LWToolkit.postEvent(event);
     }
 
     protected void postPaintEvent(int x, int y, int w, int h) {