| ★ wanayoo — archive 1999 http://java.sun.com/products/jdk/1.0.2/api/java.applet.Applet.html | Nouvelle recherche | Portail wanayoo |
Packages This Package Prev Next Index
public class java.applet.Applet
extends java.awt.Panel (II-§1.33)
{
// Constructors
public Applet(); §3.1.1
// Methods
public void destroy(); §3.1.2
public AppletContext getAppletContext(); §3.1.3
public String getAppletInfo(); §3.1.4
public AudioClip getAudioClip(URL url); §3.1.5
public AudioClip getAudioClip(URL url, String name); §3.1.6
public URL getCodeBase(); §3.1.7
public URL getDocumentBase(); §3.1.8
public Image getImage(URL url); §3.1.9
public Image getImage(URL url, String name); §3.1.10
public String getParameter(String name); §3.1.11
public String[][] getParameterInfo(); §3.1.12
public void init(); §3.1.13
public boolean isActive(); §3.1.14
public void play(URL url); §3.1.15
public void play(URL url, String name); §3.1.16
public void resize(Dimension d); §3.1.17
public void resize(int width, int height); §3.1.18
public final void setStub(AppletStub stub); §3.1.19
public void showStatus(String msg); §3.1.20
public void start(); §3.1.21
public void stop(); §3.1.22
}
An applet is a small program that is not intended to be run on its own, but to be embedded
inside another application.
public Applet()
public void destroy()
public AppletContext getAppletContext()
public String getAppletInfo()
public AudioClip getAudioClip(URL url):
url
- an absolute URL giving the location of the audio clip
public AudioClip getAudioClip(URL url, String name)
url
- an absolute URL giving the base location of the audio clip
name
- the location of the audio clip, relative to the url argument
public URL getCodeBase()
public URL getDocumentBase()
public Image getImage(URL url)
url
- an absolute URL giving the location of the image
public Image getImage(URL url, String name)
url
- an absolute URL giving the base location of the image
name
- the location of the image, relative to the url argument
public String getParameter(String name)
<applet code="Clock" width=50 height=50>
<param name=Color value="blue">
</applet>
name
- a parameter name
public String[][] getParameterInfo()
String pinfo[][] = {
{"fps", "1-10", "frames per second"},
{"repeat", "boolean", "repeat image loop"},
{"imgs", "url", "images directory"}
};
public void init()
public boolean isActive()
public void play(URL url)
url
- an absolute URL giving the location of the audio clip
public void play(URL url, String name)
url
- an absolute URL giving the base location of the audio clip
name
- the location of the audio clip, relative to the url argument
public void resize(Dimension d)
d
- An object giving the new width and height
public void resize(int width, int height)
width
- the new requested width for the applet
height
- the new requested height for the applet
public final void setStub(AppletStub stub)
stub
- The new stub
public void showStatus(String msg)
msg
- a string to display in the status window
public void start()
public void stop()
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)