java.applet
4 classes of the module java.desktop.
Load them with:
using {
"java.applet"
}
Applet#
class · extends Panel · java.applet.Applet
Constructors
new Applet() |
Ring: new Applet(args) uses the constructor with the fewest parameters (at least one); new Applet makes the object with the constructor without parameters; the others: (new Applet).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@init | @init() | void init() |
destroy | destroy() | void destroy() |
getAppletContext | getAppletContext() | AppletContext getAppletContext() |
getAppletInfo | getAppletInfo() | String getAppletInfo() |
getAudioClip | getAudioClip(url)getAudioClip([url,name])getAudioClip([ :url = v, :name = v ]) | AudioClip getAudioClip(URL url)AudioClip getAudioClip(URL url, String name) |
getCodeBase | getCodeBase() | URL getCodeBase() |
getDocumentBase | getDocumentBase() | URL getDocumentBase() |
getImage | getImage(url)getImage([url,name])getImage([ :url = v, :name = v ]) | Image getImage(URL url)Image getImage(URL url, String name) |
getParameter | getParameter(name) | String getParameter(String name) |
getParameterInfo | getParameterInfo() | String[][] getParameterInfo() |
isActive | isActive() | boolean isActive() |
newAudioClip | newAudioClip(url) | static AudioClip newAudioClip(URL url) |
play | play(url)play([url,name])play([ :url = v, :name = v ]) | void play(URL url)void play(URL url, String name) |
setStub | setStub(stub) | void setStub(AppletStub stub) |
showStatus | showStatus(msg) | void showStatus(String msg) |
start | start() | void start() |
stop | stop() | void stop() |
The methods and fields of Panel are inherited.
AppletContext#
interface · java.applet.AppletContext
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getApplet | getApplet(name) | Applet getApplet(String name) |
getApplets | getApplets() | Enumeration getApplets() |
getAudioClip | getAudioClip(url) | AudioClip getAudioClip(URL url) |
getImage | getImage(url) | Image getImage(URL url) |
getStream | getStream(key) | InputStream getStream(String key) |
getStreamKeys | getStreamKeys() | Iterator getStreamKeys() |
setStream | setStream(key,stream) | void setStream(String key, InputStream stream) |
showDocument | showDocument(url)showDocument([url,target])showDocument([ :url = v, :target = v ]) | void showDocument(URL url)void showDocument(URL url, String target) |
showStatus | showStatus(status) | void showStatus(String status) |
AppletStub#
interface · java.applet.AppletStub
Methods
| Method | Ring call | Java overloads |
|---|---|---|
appletResize | appletResize(width,height) | void appletResize(int width, int height) |
getAppletContext | getAppletContext() | AppletContext getAppletContext() |
getCodeBase | getCodeBase() | URL getCodeBase() |
getDocumentBase | getDocumentBase() | URL getDocumentBase() |
getParameter | getParameter(name) | String getParameter(String name) |
isActive | isActive() | boolean isActive() |
AudioClip#
interface · java.applet.AudioClip
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@loop | @loop() | void loop() |
play | play() | void play() |
stop | stop() | void stop() |