Hello.
Please review the fix for jdk 8. fix will be backported to 7u-dev.
The problem is that appletviewer and applet have different appcontext,
and when we postEvent to the applet inside appletviwer we reuse
appconext from lwwindowpeer which is bound to appletviwer's appcontext.
I reuse LWToolkit.postEvent, which gets appcontext from the source of
the event.
Bug: https://bugs.openjdk.java.net/browse/JDK-8027479
Webrev can be found at: http://cr.openjdk.java.net/~serb/8027479/webrev.00
--
Best regards, Sergey.