|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.applet
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
An applet is a small program that is intended not to be run on its own but rather to be embedded inside another application.Class Applet, URL getCodeBase()The
Applet
class must be the superclass of any applet that is to be embedded in a Web page or viewed by the Java Applet Viewer. TheApplet
class provides a standard interface between applets and their environment. @author Arthur van Hoff @author Chris Warth @version 1.5266 03/1815/9800 @since JDK1.0
Gets the base URL. This is the URL of the applet itself. @return the java.net.URLClass Applet, URL getDocumentBase()#_top_of this applet. @see java.applet.Applet#getDocumentBase()
Class Applet, String getParameter(String)Gets the documentReturns an absolute URL.ThisnamingistheURLdirectory of the document in which the applet is embedded. For example suppose an applet is contained within the document:The document base is:http://java.sun.com/products/jdk/1.2/index.html@return the java.net.URLhttp://java.sun.com/products/jdk/1.2/#_top_of the document that contains this applet. @see java.applet.Applet#getCodeBase()
Returns the value of the named parameter in the HTML tag. For example if this applet is specified asClass Applet, AudioClip newAudioClip(URL)<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>then a call to
getParameter("Color")
returns the value"blue"
.The
name
argument is case insensitive. @param name a parameter name. @return the value of the named parameter ornull
if not set.
Get an audio clip from the given URL. @param urlPointspoints to the audio clip @return the audio clip at the specified URL. @sinceJDK11.2
This interface corresponds to an applet's environment: the document containing the applet and the other applets in the same document.The methods in this interface can be used by an applet to obtain information about its environment. @author Arthur van Hoff @version 1.
23 0625 02/2902/9800 @since JDK1.0
When an applet is first created an applet stub is attached to it using the applet'sClass AppletStub, URL getDocumentBase()setStub
method. This stub serves as the interface between the applet and the browser environment or applet viewer environment in which the application is running. @author Arthur van Hoff @version 1.17 0621 02/2902/9800 @see java.applet.Applet#setStub(java.applet.AppletStub) @since JDK1.0
@return the java.net.URL of the documentGetsReturns an absolute URL naming the directory of the documentURLin which the applet is embedded. For example suppose an applet is contained within the document:The document base is:http://java.sun.com/products/jdk/1.2/index.html.com/products/jdk/1.2/http://java.sun
Returns the value of the named parameter in the HTML tag. For example if an applet is specified as<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>then a call to
getParameter("Color")
returns the value"blue"
. @param name a parameter name. @return the value of the named parameter or null if not set.
TheAudioClip
interface is a simple abstraction for playing a sound clip. MultipleAudioClip
items can be playing at the same time and the resulting sound is mixed together to produce a composite. @author Arthur van Hoff @version 1.13 0915 02/2102/9800 @since JDK1.0