< prev index next >

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

Print this page

        

*** 494,507 **** /** * Checks if the component is in an EmbeddedFrame. If so, * 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) { --- 494,511 ---- /** * Checks if the component is in an EmbeddedFrame. If so, * returns the applet found in the hierarchy or null if * not found. ! * @return the parent applet or {@code null} * @since 1.6 + * + * @deprecated The Applet API is deprecated. See the + * <a href="../../java/applet/package-summary.html"> java.applet package + * documentation</a> for further information. */ ! @Deprecated(since = "9") 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 >