changeset 8829:876c81f7f44c

8027479: [macosx] Appletviewer is broken after 8014718 Reviewed-by: anthony, leonidr
author serb
date Fri, 22 Nov 2013 15:48:22 +0400
parents 91279a4a41f3
children c1bbf2d0bc80
files src/macosx/classes/sun/lwawt/LWComponentPeer.java
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Fri Nov 22 10:48:00 2013 +0400
+++ b/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) {