8027479: [macosx] Appletviewer is broken after 8014718
Reviewed-by: anthony, leonidr
--- 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) {