8027479: [macosx] Appletviewer is broken after 8014718

Reviewed-by: anthony, leonidr
This commit is contained in:
Sergey Bylokhov 2013-11-22 15:48:22 +04:00
parent ac94cb0062
commit a91ac39f00

@ -379,10 +379,6 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
return windowPeer.getPlatformWindow(); return windowPeer.getPlatformWindow();
} }
protected AppContext getAppContext() {
return SunToolkit.targetToAppContext(getTarget());
}
// ---- PEER METHODS ---- // // ---- PEER METHODS ---- //
// Just a helper method // Just a helper method
@ -1162,8 +1158,8 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
/** /**
* Post an event to the proper Java EDT. * Post an event to the proper Java EDT.
*/ */
public void postEvent(AWTEvent event) { public void postEvent(final AWTEvent event) {
SunToolkit.postEvent(getAppContext(), event); LWToolkit.postEvent(event);
} }
protected void postPaintEvent(int x, int y, int w, int h) { protected void postPaintEvent(int x, int y, int w, int h) {