, .
곔 , . . , Internet. ³ .
. . Windows XP Internet Explorer . Java-, . Java-, , appletviewer.exe, SDK, Windows 98/2000.
, , . ³ . . , ( 볺 ), . : Web, .
HTML-
- Applet, java.applet, Applet. -. , Applet, Frame, Component, . , , paint().
Applet , Frame . Applet ; , . .
public void init()
start(). , - . , , , - init() .
, init() :
public void destroy()
. , , , .
public void start()
. , , , . start() ( init(), ). start()
|
|
public void stop()
, . stop() destroy().
start() stop() , , . stop() , start() .
. , .
( NervousText.java) :
1)
import java.applet.Applet;
2) extends Frame extends Applet.
3) public NervousText() public void init().
4) () super(Nervo).
5) () main() .
6) , stop(), kill: kill.stop().
html-, .
<title> Nervo </title>
<hr>
<applet code=NervoText.class width=250 height=100>
</applet>
<hr>
, - , .html, , , Internet Explorer. NervousText.class, , javac.exe.
32. .
33.
34. MediaTracker.
MediaTracker ', - . (, ), .
MediaTracker , addImage () , :
void addlmage (Image ', int )
void addlmage (Image ', int , int , int )
' - . . ' . , . ' .
, , . , checkID ().
boolean checkID (int )
. ( ), true. false. checkAl ().
|
|
MediaTracker . , , .