Applets
in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
init()
and then start()
JApplet
(or Applet
)Applet
class referred to in the <applet>
element is constructed, and its init()
and start()
methods are called in a
thread other than the event dispatch thread.
stop()
method is called (again, not in the
event dispatch thread).start()
method is called.
destroy()
method is called (again, not in the event dispatch thread).
Applet
is embedded in a WWW page using the
<applet>
tag in HTML
Applet
is passed to the
browser using the code
attribute
CLASSPATH
is passed to the browser using the
codebase
attribute
Applet
you use the
<param>
tag in HTML. Each
<param>
tag has two attributes, a
name
and a value
. These
name-value pairs can be retrieved in the Applet
using the getParameter()
method.
Applet
s)Applet
can not run a local executable
Applet
can not communicate with any
machine other that the originating host
Applet
can not read or write files
Applet
can not obtain information about the
local machine other than the version of Java that is being
used, the name and version of the operating system, and
information about special character usage