|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.Component
![]()
![]()
![]()
java.awt.Container
![]()
![]()
![]()
java.awt.Panel
![]()
![]()
![]()
java.applet.Applet
, MenuContainer
, Serializable
, Accessible


public class Applet

An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application.
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. The Applet class provides a standard
interface between applets and their environment.
| Nested Class Summary | |
|---|---|
protected class |
Applet.AccessibleApplet
This class implements accessibility support for the Applet class. |
Nested classes/interfaces inherited from class java.awt.Panel ![]() |
|---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container ![]() |
|---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component ![]() |
|---|
Component.AccessibleAWTComponent |
| Field Summary |
|---|
Fields inherited from class java.awt.Component ![]() |
|---|
BOTTOM_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver ![]() |
|---|
ABORT |
| Constructor Summary | |
|---|---|
Applet
Creates a new Applet object |
|
| Method Summary | |
|---|---|
void |
destroy
Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. |
AccessibleContext |
getAccessibleContext
Gets the AccessibleContext associated with this Applet. |
AppletContext |
getAppletContext
Determines this applet's context, which allows the applet to query and affect the environment in which it runs. |
String |
getAppletInfo
Returns information about this applet. |
AudioClip |
getAudioClip
Returns the AudioClip object specified by the
URL argument. |
AudioClip |
getAudioClip
Returns the AudioClip object specified by the
URL and name arguments. |
URL |
getCodeBase
Gets the base URL. |
URL |
getDocumentBase
Gets the URL of the document in which this applet is embedded. |
Image |
getImage
Returns an Image object that can then be painted on
the screen. |
Image |
getImage
Returns an Image object that can then be painted on
the screen. |
Locale |
getLocale
Gets the Locale for the applet, if it has been set. |
String |
getParameter
Returns the value of the named parameter in the HTML tag. |
String |
getParameterInfo
Returns information about the parameters that are understood by this applet. |
void |
init
Called by the browser or applet viewer to inform this applet that it has been loaded into the system. |
boolean |
isActive
Determines if this applet is active. |
static AudioClip |
newAudioClip
Get an audio clip from the given URL. |
void |
play
Plays the audio clip at the specified absolute URL. |
void |
play
Plays the audio clip given the URL and a specifier that is relative to it. |
void |
resize
Requests that this applet be resized. |
void |
resize
Requests that this applet be resized. |
void |
setStub
Sets this applet's stub. |
void |
showStatus
Requests that the argument string be displayed in the "status window". |
void |
start
Called by the browser or applet viewer to inform this applet that it should start its execution. |
void |
stop
Called by the browser or applet viewer to inform this applet that it should stop its execution. |
Methods inherited from class java.awt.Panel ![]() |
|---|
addNotify |
Methods inherited from class java.awt.Component ![]() |
|---|
action |