public interface AppletStub
setStubmethod. This stub serves as the interface between the applet and the browser environment or applet viewer environment in which the application is running.
|Modifier and Type||Method and Description|
Called when the applet wants to be resized.
Returns the applet's context.
Gets the base URL.
Gets the URL of the document in which the applet is embedded.
Returns the value of the named parameter in the HTML tag.
Determines if the applet is active.
startmethod is called. It becomes inactive just before its
stopmethod is called.
trueif the applet is active;
The document base is:http://www.oracle.com/technetwork/java/index.html
URLof the document that contains the applet.
URLof the directory which contains the applet.
String getParameter(String name)
<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
then a call to
getParameter("Color") returns the
name- a parameter name.
void appletResize(int width, int height)
width- the new requested width for the applet.
height- the new requested height for the applet.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.