< prev index next >

src/java.desktop/share/classes/sun/awt/EmbeddedFrame.java

Print this page

        

@@ -497,10 +497,11 @@
      * returns the applet found in the hierarchy or null if
      * not found.
      * @return the parent applet or {@ null}
      * @since 1.6
      */
+    @SuppressWarnings("deprecation")
     public static Applet getAppletIfAncestorOf(Component comp) {
         Container parent = comp.getParent();
         Applet applet = null;
         while (parent != null && !(parent instanceof EmbeddedFrame)) {
             if (parent instanceof Applet) {
< prev index next >