--- a/jdk/src/share/classes/sun/awt/SunToolkit.java Mon Aug 11 10:42:51 2014 +0400
+++ b/jdk/src/share/classes/sun/awt/SunToolkit.java Tue Aug 12 14:22:05 2014 +0400
@@ -2014,6 +2014,19 @@
return isInstanceOf(cls.getSuperclass(), type);
}
+ protected static LightweightFrame getLightweightFrame(Component c) {
+ for (; c != null; c = c.getParent()) {
+ if (c instanceof LightweightFrame) {
+ return (LightweightFrame)c;
+ }
+ if (c instanceof Window) {
+ // Don't traverse owner windows
+ return null;
+ }
+ }
+ return null;
+ }
+
///////////////////////////////////////////////////////////////////////////
//
// The following methods help set and identify whether a particular