home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: PKZip Archive
(archive/zip).
You can browse this item here: SRC.ZIP
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| PKZip Archive (archive/zip)
| magic
| Supported |
100%
| dexvert
| JAR Archive (archive/jar)
| magic
| Supported |
100%
| file
| data
| default
| |
38%
| TrID
| Java Archive
| default
| |
30%
| TrID
| Sweet Home 3D design (generic)
| default (weak)
| |
20%
| TrID
| Mozilla Archive Format (gen)
| default (weak)
| |
11%
| TrID
| ZIP compressed archive
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| lsar
| Zip
| default
| |
100%
| gt2
| ZIP Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| detectItEasy
| Archive: Zip(1.0)[100.0%,1596 files,77 dirs]
| default
| |
100%
| binwalkID
| Zip archive data, at least v1.0 to extract, name: java/
| default
| |
100%
| xdgMime
| application/zip
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 4b 03 04 0a 00 00 00 | 00 00 f7 ad 88 24 00 00 |PK......|.....$..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 05 00 00 00 6a 61 |........|......ja|
|00000020| 76 61 2f 50 4b 03 04 0a | 00 00 00 00 00 cf ad 88 |va/PK...|........|
|00000030| 24 00 00 00 00 00 00 00 | 00 00 00 00 00 0c 00 00 |$.......|........|
|00000040| 00 6a 61 76 61 2f 61 70 | 70 6c 65 74 2f 50 4b 03 |.java/ap|plet/PK.|
|00000050| 04 0a 00 00 00 00 00 0c | 5a 74 24 f1 0b 4c 68 d4 |........|Zt$..Lh.|
|00000060| 3a 00 00 d4 3a 00 00 17 | 00 00 00 6a 61 76 61 2f |:...:...|...java/|
|00000070| 61 70 70 6c 65 74 2f 41 | 70 70 6c 65 74 2e 6a 61 |applet/A|pplet.ja|
|00000080| 76 61 2f 2a 0a 20 2a 20 | 40 28 23 29 41 70 70 6c |va/*. * |@(#)Appl|
|00000090| 65 74 2e 6a 61 76 61 09 | 31 2e 35 32 20 39 38 2f |et.java.|1.52 98/|
|000000a0| 30 33 2f 31 38 0a 20 2a | 0a 20 2a 20 43 6f 70 79 |03/18. *|. * Copy|
|000000b0| 72 69 67 68 74 20 31 39 | 39 35 2d 31 39 39 38 20 |right 19|95-1998 |
|000000c0| 62 79 20 53 75 6e 20 4d | 69 63 72 6f 73 79 73 74 |by Sun M|icrosyst|
|000000d0| 65 6d 73 2c 20 49 6e 63 | 2e 2c 0a 20 2a 20 39 30 |ems, Inc|.,. * 90|
|000000e0| 31 20 53 61 6e 20 41 6e | 74 6f 6e 69 6f 20 52 6f |1 San An|tonio Ro|
|000000f0| 61 64 2c 20 50 61 6c 6f | 20 41 6c 74 6f 2c 20 43 |ad, Palo| Alto, C|
|00000100| 61 6c 69 66 6f 72 6e 69 | 61 2c 20 39 34 33 30 33 |aliforni|a, 94303|
|00000110| 2c 20 55 2e 53 2e 41 2e | 0a 20 2a 20 41 6c 6c 20 |, U.S.A.|. * All |
|00000120| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|00000130| 0a 20 2a 0a 20 2a 20 54 | 68 69 73 20 73 6f 66 74 |. *. * T|his soft|
|00000140| 77 61 72 65 20 69 73 20 | 74 68 65 20 63 6f 6e 66 |ware is |the conf|
|00000150| 69 64 65 6e 74 69 61 6c | 20 61 6e 64 20 70 72 6f |idential| and pro|
|00000160| 70 72 69 65 74 61 72 79 | 20 69 6e 66 6f 72 6d 61 |prietary| informa|
|00000170| 74 69 6f 6e 0a 20 2a 20 | 6f 66 20 53 75 6e 20 4d |tion. * |of Sun M|
|00000180| 69 63 72 6f 73 79 73 74 | 65 6d 73 2c 20 49 6e 63 |icrosyst|ems, Inc|
|00000190| 2e 20 28 22 43 6f 6e 66 | 69 64 65 6e 74 69 61 6c |. ("Conf|idential|
|000001a0| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 22 29 2e 20 | Informa|tion"). |
|000001b0| 20 59 6f 75 0a 20 2a 20 | 73 68 61 6c 6c 20 6e 6f | You. * |shall no|
|000001c0| 74 20 64 69 73 63 6c 6f | 73 65 20 73 75 63 68 20 |t disclo|se such |
|000001d0| 43 6f 6e 66 69 64 65 6e | 74 69 61 6c 20 49 6e 66 |Confiden|tial Inf|
|000001e0| 6f 72 6d 61 74 69 6f 6e | 20 61 6e 64 20 73 68 61 |ormation| and sha|
|000001f0| 6c 6c 20 75 73 65 0a 20 | 2a 20 69 74 20 6f 6e 6c |ll use. |* it onl|
|00000200| 79 20 69 6e 20 61 63 63 | 6f 72 64 61 6e 63 65 20 |y in acc|ordance |
|00000210| 77 69 74 68 20 74 68 65 | 20 74 65 72 6d 73 20 6f |with the| terms o|
|00000220| 66 20 74 68 65 20 6c 69 | 63 65 6e 73 65 20 61 67 |f the li|cense ag|
|00000230| 72 65 65 6d 65 6e 74 0a | 20 2a 20 79 6f 75 20 65 |reement.| * you e|
|00000240| 6e 74 65 72 65 64 20 69 | 6e 74 6f 20 77 69 74 68 |ntered i|nto with|
|00000250| 20 53 75 6e 2e 0a 20 2a | 2f 0a 70 61 63 6b 61 67 | Sun.. *|/.packag|
|00000260| 65 20 6a 61 76 61 2e 61 | 70 70 6c 65 74 3b 0a 0a |e java.a|pplet;..|
|00000270| 69 6d 70 6f 72 74 20 6a | 61 76 61 2e 61 77 74 2e |import j|ava.awt.|
|00000280| 2a 3b 0a 69 6d 70 6f 72 | 74 20 6a 61 76 61 2e 61 |*;.impor|t java.a|
|00000290| 77 74 2e 69 6d 61 67 65 | 2e 43 6f 6c 6f 72 4d 6f |wt.image|.ColorMo|
|000002a0| 64 65 6c 3b 0a 69 6d 70 | 6f 72 74 20 6a 61 76 61 |del;.imp|ort java|
|000002b0| 2e 6e 65 74 2e 55 52 4c | 3b 0a 69 6d 70 6f 72 74 |.net.URL|;.import|
|000002c0| 20 6a 61 76 61 2e 6e 65 | 74 2e 4d 61 6c 66 6f 72 | java.ne|t.Malfor|
|000002d0| 6d 65 64 55 52 4c 45 78 | 63 65 70 74 69 6f 6e 3b |medURLEx|ception;|
|000002e0| 0a 69 6d 70 6f 72 74 20 | 6a 61 76 61 2e 75 74 69 |.import |java.uti|
|000002f0| 6c 2e 48 61 73 68 74 61 | 62 6c 65 3b 0a 69 6d 70 |l.Hashta|ble;.imp|
|00000300| 6f 72 74 20 6a 61 76 61 | 2e 75 74 69 6c 2e 4c 6f |ort java|.util.Lo|
|00000310| 63 61 6c 65 3b 0a 0a 2f | 2a 2a 0a 20 2a 20 41 6e |cale;../|**. * An|
|00000320| 20 61 70 70 6c 65 74 20 | 69 73 20 61 20 73 6d 61 | applet |is a sma|
|00000330| 6c 6c 20 70 72 6f 67 72 | 61 6d 20 74 68 61 74 20 |ll progr|am that |
|00000340| 69 73 20 69 6e 74 65 6e | 64 65 64 20 6e 6f 74 20 |is inten|ded not |
|00000350| 74 6f 20 62 65 20 72 75 | 6e 20 6f 6e 20 0a 20 2a |to be ru|n on . *|
|00000360| 20 69 74 73 20 6f 77 6e | 2c 20 62 75 74 20 72 61 | its own|, but ra|
|00000370| 74 68 65 72 20 74 6f 20 | 62 65 20 65 6d 62 65 64 |ther to |be embed|
|00000380| 64 65 64 20 69 6e 73 69 | 64 65 20 61 6e 6f 74 68 |ded insi|de anoth|
|00000390| 65 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |er appli|cation. |
|000003a0| 0a 20 2a 20 3c 70 3e 0a | 20 2a 20 54 68 65 20 3c |. * <p>.| * The <|
|000003b0| 63 6f 64 65 3e 41 70 70 | 6c 65 74 3c 2f 63 6f 64 |code>App|let</cod|
|000003c0| 65 3e 20 63 6c 61 73 73 | 20 6d 75 73 74 20 62 65 |e> class| must be|
|000003d0| 20 74 68 65 20 73 75 70 | 65 72 63 6c 61 73 73 20 | the sup|erclass |
|000003e0| 6f 66 20 61 6e 79 20 0a | 20 2a 20 61 70 70 6c 65 |of any .| * apple|
|000003f0| 74 20 74 68 61 74 20 69 | 73 20 74 6f 20 62 65 20 |t that i|s to be |
|00000400| 65 6d 62 65 64 64 65 64 | 20 69 6e 20 61 20 57 65 |embedded| in a We|
|00000410| 62 20 70 61 67 65 20 6f | 72 20 76 69 65 77 65 64 |b page o|r viewed|
|00000420| 20 62 79 20 74 68 65 20 | 4a 61 76 61 20 0a 20 2a | by the |Java . *|
|00000430| 20 41 70 70 6c 65 74 20 | 56 69 65 77 65 72 2e 20 | Applet |Viewer. |
|00000440| 54 68 65 20 3c 63 6f 64 | 65 3e 41 70 70 6c 65 74 |The <cod|e>Applet|
|00000450| 3c 2f 63 6f 64 65 3e 20 | 63 6c 61 73 73 20 70 72 |</code> |class pr|
|00000460| 6f 76 69 64 65 73 20 61 | 20 73 74 61 6e 64 61 72 |ovides a| standar|
|00000470| 64 20 0a 20 2a 20 69 6e | 74 65 72 66 61 63 65 20 |d . * in|terface |
|00000480| 62 65 74 77 65 65 6e 20 | 61 70 70 6c 65 74 73 20 |between |applets |
|00000490| 61 6e 64 20 74 68 65 69 | 72 20 65 6e 76 69 72 6f |and thei|r enviro|
|000004a0| 6e 6d 65 6e 74 2e 20 0a | 20 2a 0a 20 2a 20 40 61 |nment. .| *. * @a|
|000004b0| 75 74 68 6f 72 20 20 20 | 20 20 20 41 72 74 68 75 |uthor | Arthu|
|000004c0| 72 20 76 61 6e 20 48 6f | 66 66 0a 20 2a 20 40 61 |r van Ho|ff. * @a|
|000004d0| 75 74 68 6f 72 20 20 20 | 20 20 20 43 68 72 69 73 |uthor | Chris|
|000004e0| 20 57 61 72 74 68 0a 20 | 2a 20 40 76 65 72 73 69 | Warth. |* @versi|
|000004f0| 6f 6e 20 20 20 20 20 31 | 2e 35 32 2c 20 30 33 2f |on 1|.52, 03/|
|00000500| 31 38 2f 39 38 0a 20 2a | 20 40 73 69 6e 63 65 20 |18/98. *| @since |
|00000510| 20 20 20 20 20 20 4a 44 | 4b 31 2e 30 0a 20 2a 2f | JD|K1.0. */|
|00000520| 0a 70 75 62 6c 69 63 20 | 63 6c 61 73 73 20 41 70 |.public |class Ap|
|00000530| 70 6c 65 74 20 65 78 74 | 65 6e 64 73 20 50 61 6e |plet ext|ends Pan|
|00000540| 65 6c 20 7b 0a 20 20 20 | 20 2f 2a 2a 0a 20 20 20 |el {. | /**. |
|00000550| 20 20 2a 20 41 70 70 6c | 65 74 73 20 63 61 6e 20 | * Appl|ets can |
|00000560| 62 65 20 73 65 72 69 61 | 6c 69 7a 65 64 20 62 75 |be seria|lized bu|
|00000570| 74 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |t the fo|llowing |
|00000580| 63 6f 6e 76 65 6e 74 69 | 6f 6e 73 20 4d 55 53 54 |conventi|ons MUST|
|00000590| 20 62 65 20 66 6f 6c 6c | 6f 77 65 64 3a 0a 20 20 | be foll|owed:. |
|000005a0| 20 20 20 2a 0a 20 20 20 | 20 20 2a 20 42 65 66 6f | *. | * Befo|
|000005b0| 72 65 20 53 65 72 69 61 | 6c 69 7a 61 74 69 6f 6e |re Seria|lization|
|000005c0| 3a 0a 20 20 20 20 20 2a | 20 41 6e 20 61 70 70 6c |:. *| An appl|
|000005d0| 65 74 20 6d 75 73 74 20 | 62 65 20 69 6e 20 53 54 |et must |be in ST|
|000005e0| 4f 50 50 45 44 20 73 74 | 61 74 65 2e 0a 20 20 20 |OPPED st|ate.. |
|000005f0| 20 20 2a 0a 20 20 20 20 | 20 2a 20 41 66 74 65 72 | *. | * After|
|00000600| 20 44 65 73 65 72 69 61 | 6c 69 7a 61 74 69 6f 6e | Deseria|lization|
|00000610| 3a 0a 20 20 20 20 20 2a | 20 54 68 65 20 61 70 70 |:. *| The app|
|00000620| 6c 65 74 20 77 69 6c 6c | 20 62 65 20 72 65 73 74 |let will| be rest|
|00000630| 6f 72 65 64 20 69 6e 20 | 53 54 4f 50 50 45 44 20 |ored in |STOPPED |
|00000640| 73 74 61 74 65 20 28 61 | 6e 64 20 6d 6f 73 74 20 |state (a|nd most |
|00000650| 63 6c 69 65 6e 74 73 20 | 77 69 6c 6c 20 6c 69 6b |clients |will lik|
|00000660| 65 6c 79 0a 20 20 20 20 | 20 2a 20 20 20 20 6d 6f |ely. | * mo|
|00000670| 76 65 20 69 74 20 69 6e | 74 6f 20 52 55 4e 4e 49 |ve it in|to RUNNI|
|00000680| 4e 47 20 73 74 61 74 65 | 29 2e 0a 20 20 20 20 20 |NG state|).. |
|00000690| 2a 20 54 68 65 20 73 74 | 75 62 20 66 69 65 6c 64 |* The st|ub field|
|000006a0| 20 77 69 6c 6c 20 62 65 | 20 72 65 73 74 6f 72 65 | will be| restore|
|000006b0| 64 20 62 79 20 74 68 65 | 20 72 65 61 64 65 72 2e |d by the| reader.|
|000006c0| 0a 20 20 20 20 20 2a 2f | 0a 20 20 20 20 74 72 61 |. */|. tra|
|000006d0| 6e 73 69 65 6e 74 20 70 | 72 69 76 61 74 65 20 41 |nsient p|rivate A|
|000006e0| 70 70 6c 65 74 53 74 75 | 62 20 73 74 75 62 3b 0a |ppletStu|b stub;.|
|000006f0| 0a 20 20 20 20 2f 2a 20 | 76 65 72 73 69 6f 6e 20 |. /* |version |
|00000700| 49 44 20 66 6f 72 20 73 | 65 72 69 61 6c 69 7a 65 |ID for s|erialize|
|00000710| 64 20 66 6f 72 6d 2e 20 | 2a 2f 0a 20 20 20 20 70 |d form. |*/. p|
|00000720| 72 69 76 61 74 65 20 73 | 74 61 74 69 63 20 66 69 |rivate s|tatic fi|
|00000730| 6e 61 6c 20 6c 6f 6e 67 | 20 73 65 72 69 61 6c 56 |nal long| serialV|
|00000740| 65 72 73 69 6f 6e 55 49 | 44 20 3d 20 2d 35 38 33 |ersionUI|D = -583|
|00000750| 36 38 34 36 32 37 30 35 | 33 35 37 38 35 30 33 31 |68462705|35785031|
|00000760| 4c 3b 0a 0a 20 20 20 20 | 2f 2a 2a 0a 20 20 20 20 |L;.. |/**. |
|00000770| 20 2a 20 53 65 74 73 20 | 74 68 69 73 20 61 70 70 | * Sets |this app|
|00000780| 6c 65 74 27 73 20 73 74 | 75 62 2e 20 54 68 69 73 |let's st|ub. This|
|00000790| 20 69 73 20 64 6f 6e 65 | 20 61 75 74 6f 6d 61 74 | is done| automat|
|000007a0| 69 63 61 6c 6c 79 20 62 | 79 20 74 68 65 20 73 79 |ically b|y the sy|
|000007b0| 73 74 65 6d 2e 20 0a 20 | 20 20 20 20 2a 20 0a 20 |stem. . | * . |
|000007c0| 20 20 20 20 2a 20 40 70 | 61 72 61 6d 20 20 20 73 | * @p|aram s|
|000007d0| 74 75 62 20 20 20 74 68 | 65 20 6e 65 77 20 73 74 |tub th|e new st|
|000007e0| 75 62 2e 0a 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 |ub.. | */. |
|000007f0| 70 75 62 6c 69 63 20 66 | 69 6e 61 6c 20 76 6f 69 |public f|inal voi|
|00000800| 64 20 73 65 74 53 74 75 | 62 28 41 70 70 6c 65 74 |d setStu|b(Applet|
|00000810| 53 74 75 62 20 73 74 75 | 62 29 20 7b 0a 09 74 68 |Stub stu|b) {..th|
|00000820| 69 73 2e 73 74 75 62 20 | 3d 20 28 41 70 70 6c 65 |is.stub |= (Apple|
|00000830| 74 53 74 75 62 29 73 74 | 75 62 3b 0a 20 20 20 20 |tStub)st|ub;. |
|00000840| 7d 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |}.. /|**. |
|00000850| 2a 20 44 65 74 65 72 6d | 69 6e 65 73 20 69 66 20 |* Determ|ines if |
|00000860| 74 68 69 73 20 61 70 70 | 6c 65 74 20 69 73 20 61 |this app|let is a|
|00000870| 63 74 69 76 65 2e 20 41 | 6e 20 61 70 70 6c 65 74 |ctive. A|n applet|
|00000880| 20 69 73 20 6d 61 72 6b | 65 64 20 61 63 74 69 76 | is mark|ed activ|
|00000890| 65 20 0a 20 20 20 20 20 | 2a 20 6a 75 73 74 20 62 |e . |* just b|
|000008a0| 65 66 6f 72 65 20 69 74 | 73 20 3c 63 6f 64 65 3e |efore it|s <code>|
|000008b0| 73 74 61 72 74 3c 2f 63 | 6f 64 65 3e 20 6d 65 74 |start</c|ode> met|
|000008c0| 68 6f 64 20 69 73 20 63 | 61 6c 6c 65 64 2e 20 49 |hod is c|alled. I|
|000008d0| 74 20 62 65 63 6f 6d 65 | 73 20 0a 20 20 20 20 20 |t become|s . |
|000008e0| 2a 20 69 6e 61 63 74 69 | 76 65 20 6a 75 73 74 20 |* inacti|ve just |
|000008f0| 62 65 66 6f 72 65 20 69 | 74 73 20 3c 63 6f 64 65 |before i|ts <code|
|00000900| 3e 73 74 6f 70 3c 2f 63 | 6f 64 65 3e 20 6d 65 74 |>stop</c|ode> met|
|00000910| 68 6f 64 20 69 73 20 63 | 61 6c 6c 65 64 2e 20 0a |hod is c|alled. .|
|00000920| 20 20 20 20 20 2a 0a 20 | 20 20 20 20 2a 20 40 72 | *. | * @r|
|00000930| 65 74 75 72 6e 20 20 3c | 63 6f 64 65 3e 74 72 75 |eturn <|code>tru|
|00000940| 65 3c 2f 63 6f 64 65 3e | 20 69 66 20 74 68 65 20 |e</code>| if the |
|00000950| 61 70 70 6c 65 74 20 69 | 73 20 61 63 74 69 76 65 |applet i|s active|
|00000960| 3b 0a 20 20 20 20 20 2a | 20 20 20 20 20 20 20 20 |;. *| |
|00000970| 20 20 3c 63 6f 64 65 3e | 66 61 6c 73 65 3c 2f 63 | <code>|false</c|
|00000980| 6f 64 65 3e 20 6f 74 68 | 65 72 77 69 73 65 2e 0a |ode> oth|erwise..|
|00000990| 20 20 20 20 20 2a 20 40 | 73 65 65 20 20 20 20 20 | * @|see |
|000009a0| 6a 61 76 61 2e 61 70 70 | 6c 65 74 2e 41 70 70 6c |java.app|let.Appl|
|000009b0| 65 74 23 73 74 61 72 74 | 28 29 0a 20 20 20 20 20 |et#start|(). |
|000009c0| 2a 20 40 73 65 65 20 20 | 20 20 20 6a 61 76 61 2e |* @see | java.|
|000009d0| 61 70 70 6c 65 74 2e 41 | 70 70 6c 65 74 23 73 74 |applet.A|pplet#st|
|000009e0| 6f 70 28 29 0a 20 20 20 | 20 20 2a 2f 0a 20 20 20 |op(). | */. |
|000009f0| 20 70 75 62 6c 69 63 20 | 62 6f 6f 6c 65 61 6e 20 | public |boolean |
|00000a00| 69 73 41 63 74 69 76 65 | 28 29 20 7b 0a 09 69 66 |isActive|() {..if|
|00000a10| 20 28 73 74 75 62 20 21 | 3d 20 6e 75 6c 6c 29 20 | (stub !|= null) |
|00000a20| 7b 0a 09 20 20 20 20 72 | 65 74 75 72 6e 20 73 74 |{.. r|eturn st|
|00000a30| 75 62 2e 69 73 41 63 74 | 69 76 65 28 29 3b 0a 09 |ub.isAct|ive();..|
|00000a40| 7d 20 65 6c 73 65 20 7b | 09 2f 2f 20 49 66 20 73 |} else {|.// If s|
|00000a50| 74 75 62 20 66 69 65 6c | 64 20 6e 6f 74 20 66 69 |tub fiel|d not fi|
|00000a60| 6c 6c 65 64 20 69 6e 2c | 20 61 70 70 6c 65 74 20 |lled in,| applet |
|00000a70| 6e 65 76 65 72 20 61 63 | 74 69 76 65 0a 09 20 20 |never ac|tive.. |
|00000a80| 20 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0a | return| false;.|
|00000a90| 09 7d 0a 20 20 20 20 7d | 0a 20 20 20 20 0a 20 20 |.}. }|. . |
|00000aa0| 20 20 2f 2a 2a 0a 20 20 | 20 20 20 2a 20 47 65 74 | /**. | * Get|
|00000ab0| 73 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 55 |s the do|cument U|
|00000ac0| 52 4c 2e 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |RL. This| is the |
|00000ad0| 55 52 4c 20 6f 66 20 74 | 68 65 20 64 6f 63 75 6d |URL of t|he docum|
|00000ae0| 65 6e 74 20 69 6e 20 77 | 68 69 63 68 0a 20 20 20 |ent in w|hich. |
|00000af0| 20 20 2a 20 74 68 65 20 | 61 70 70 6c 65 74 20 69 | * the |applet i|
|00000b00| 73 20 65 6d 62 65 64 64 | 65 64 2e 0a 20 20 20 20 |s embedd|ed.. |
|00000b10| 20 2a 0a 20 20 20 20 20 | 2a 20 40 72 65 74 75 72 | *. |* @retur|
|00000b20| 6e 20 20 74 68 65 20 3c | 61 20 68 72 65 66 3d 22 |n the <|a href="|
|00000b30| 6a 61 76 61 2e 6e 65 74 | 2e 55 52 4c 2e 68 74 6d |java.net|.URL.htm|
|00000b40| 6c 23 5f 74 6f 70 5f 22 | 3e 3c 63 6f 64 65 3e 55 |l#_top_"|><code>U|
|00000b50| 52 4c 3c 2f 63 6f 64 65 | 3e 3c 2f 61 3e 20 6f 66 |RL</code|></a> of|
|00000b60| 0a 20 20 20 20 20 2a 20 | 20 20 20 20 20 20 20 20 |. * | |
|00000b70| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 20 74 68 | the doc|ument th|
|00000b80| 61 74 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 69 73 |at conta|ins this|
|00000b90| 20 61 70 70 6c 65 74 2e | 0a 20 20 20 20 20 2a 20 | applet.|. * |
|00000ba0| 40 73 65 65 20 20 20 20 | 20 6a 61 76 61 2e 61 70 |@see | java.ap|
|00000bb0| 70 6c 65 74 2e 41 70 70 | 6c 65 74 23 67 65 74 43 |plet.App|let#getC|
|00000bc0| 6f 64 65 42 61 73 65 28 | 29 0a 20 20 20 20 20 2a |odeBase(|). *|
|00000bd0| 2f 0a 20 20 20 20 70 75 | 62 6c 69 63 20 55 52 4c |/. pu|blic URL|
|00000be0| 20 67 65 74 44 6f 63 75 | 6d 65 6e 74 42 61 73 65 | getDocu|mentBase|
|00000bf0| 28 29 20 7b 0a 09 72 65 | 74 75 72 6e 20 73 74 75 |() {..re|turn stu|
|00000c00| 62 2e 67 65 74 44 6f 63 | 75 6d 65 6e 74 42 61 73 |b.getDoc|umentBas|
|00000c10| 65 28 29 3b 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 |e();. | }.. |
|00000c20| 2f 2a 2a 0a 20 20 20 20 | 20 2a 20 47 65 74 73 20 |/**. | * Gets |
|00000c30| 74 68 65 20 62 61 73 65 | 20 55 52 4c 2e 20 54 68 |the base| URL. Th|
|00000c40| 69 73 20 69 73 20 74 68 | 65 20 55 52 4c 20 6f 66 |is is th|e URL of|
|00000c50| 20 74 68 65 20 61 70 70 | 6c 65 74 20 69 74 73 65 | the app|let itse|
|00000c60| 6c 66 2e 20 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |lf. . | *. |
|00000c70| 20 2a 20 40 72 65 74 75 | 72 6e 20 20 74 68 65 20 | * @retu|rn the |
|00000c80| 3c 61 20 68 72 65 66 3d | 22 6a 61 76 61 2e 6e 65 |<a href=|"java.ne|
|00000c90| 74 2e 55 52 4c 2e 68 74 | 6d 6c 23 5f 74 6f 70 5f |t.URL.ht|ml#_top_|
|00000ca0| 22 3e 3c 63 6f 64 65 3e | 55 52 4c 3c 2f 63 6f 64 |"><code>|URL</cod|
|00000cb0| 65 3e 3c 2f 61 3e 20 6f | 66 0a 20 20 20 20 20 2a |e></a> o|f. *|
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 20 61 | | this a|
|00000cd0| 70 70 6c 65 74 2e 0a 20 | 20 20 20 20 2a 20 40 73 |pplet.. | * @s|
|00000ce0| 65 65 20 20 20 20 20 6a | 61 76 61 2e 61 70 70 6c |ee j|ava.appl|
|00000cf0| 65 74 2e 41 70 70 6c 65 | 74 23 67 65 74 44 6f 63 |et.Apple|t#getDoc|
|00000d00| 75 6d 65 6e 74 42 61 73 | 65 28 29 0a 20 20 20 20 |umentBas|e(). |
|00000d10| 20 2a 2f 0a 20 20 20 20 | 70 75 62 6c 69 63 20 55 | */. |public U|
|00000d20| 52 4c 20 67 65 74 43 6f | 64 65 42 61 73 65 28 29 |RL getCo|deBase()|
|00000d30| 20 7b 0a 09 72 65 74 75 | 72 6e 20 73 74 75 62 2e | {..retu|rn stub.|
|00000d40| 67 65 74 43 6f 64 65 42 | 61 73 65 28 29 3b 0a 20 |getCodeB|ase();. |
|00000d50| 20 20 20 7d 0a 0a 20 20 | 20 20 2f 2a 2a 0a 20 20 | }.. | /**. |
|00000d60| 20 20 20 2a 20 52 65 74 | 75 72 6e 73 20 74 68 65 | * Ret|urns the|
|00000d70| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 6e 61 | value o|f the na|
|00000d80| 6d 65 64 20 70 61 72 61 | 6d 65 74 65 72 20 69 6e |med para|meter in|
|00000d90| 20 74 68 65 20 48 54 4d | 4c 20 74 61 67 2e 20 46 | the HTM|L tag. F|
|00000da0| 6f 72 20 0a 20 20 20 20 | 20 2a 20 65 78 61 6d 70 |or . | * examp|
|00000db0| 6c 65 2c 20 69 66 20 74 | 68 69 73 20 61 70 70 6c |le, if t|his appl|
|00000dc0| 65 74 20 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |et is sp|ecified |
|00000dd0| 61 73 0a 20 20 20 20 20 | 2a 20 3c 62 6c 6f 63 6b |as. |* <block|
|00000de0| 71 75 6f 74 65 3e 3c 70 | 72 65 3e 0a 20 20 20 20 |quote><p|re>. |
|00000df0| 20 2a 20 26 6c 74 3b 61 | 70 70 6c 65 74 20 63 6f | * <a|pplet co|
|00000e00| 64 65 3d 22 43 6c 6f 63 | 6b 22 20 77 69 64 74 68 |de="Cloc|k" width|
|00000e10| 3d 35 30 20 68 65 69 67 | 68 74 3d 35 30 26 67 74 |=50 heig|ht=50>|
|00000e20| 3b 0a 20 20 20 20 20 2a | 20 26 6c 74 3b 70 61 72 |;. *| <par|
|00000e30| 61 6d 20 6e 61 6d 65 3d | 43 6f 6c 6f 72 20 76 61 |am name=|Color va|
|00000e40| 6c 75 65 3d 22 62 6c 75 | 65 22 26 67 74 3b 0a 20 |lue="blu|e">. |
|00000e50| 20 20 20 20 2a 20 26 6c | 74 3b 2f 61 70 70 6c 65 | * &l|t;/apple|
|00000e60| 74 26 67 74 3b 0a 20 20 | 20 20 20 2a 20 3c 2f 70 |t>. | * </p|
|00000e70| 72 65 3e 3c 2f 62 6c 6f | 63 6b 71 75 6f 74 65 3e |re></blo|ckquote>|
|00000e80| 0a 20 20 20 20 20 2a 20 | 3c 70 3e 0a 20 20 20 20 |. * |<p>. |
|00000e90| 20 2a 20 74 68 65 6e 20 | 61 20 63 61 6c 6c 20 74 | * then |a call t|
|00000ea0| 6f 20 3c 63 6f 64 65 3e | 67 65 74 50 61 72 61 6d |o <code>|getParam|
|00000eb0| 65 74 65 72 28 22 43 6f | 6c 6f 72 22 29 3c 2f 63 |eter("Co|lor")</c|
|00000ec0| 6f 64 65 3e 20 72 65 74 | 75 72 6e 73 20 74 68 65 |ode> ret|urns the|
|00000ed0| 20 0a 20 20 20 20 20 2a | 20 76 61 6c 75 65 20 3c | . *| value <|
|00000ee0| 63 6f 64 65 3e 22 62 6c | 75 65 22 3c 2f 63 6f 64 |code>"bl|ue"</cod|
|00000ef0| 65 3e 2e 20 0a 20 20 20 | 20 20 2a 20 3c 70 3e 0a |e>. . | * <p>.|
|00000f00| 20 20 20 20 20 2a 20 54 | 68 65 20 3c 63 6f 64 65 | * T|he <code|
|00000f10| 3e 6e 61 6d 65 3c 2f 63 | 6f 64 65 3e 20 61 72 67 |>name</c|ode> arg|
|00000f20| 75 6d 65 6e 74 20 69 73 | 20 63 61 73 65 20 69 6e |ument is| case in|
|00000f30| 73 65 6e 73 69 74 69 76 | 65 2e 20 0a 20 20 20 20 |sensitiv|e. . |
|00000f40| 20 2a 0a 20 20 20 20 20 | 2a 20 40 70 61 72 61 6d | *. |* @param|
|00000f50| 20 20 20 6e 61 6d 65 20 | 20 20 61 20 70 61 72 61 | name | a para|
|00000f60| 6d 65 74 65 72 20 6e 61 | 6d 65 2e 0a 20 20 20 20 |meter na|me.. |
|00000f70| 20 2a 20 40 72 65 74 75 | 72 6e 20 20 74 68 65 20 | * @retu|rn the |
|00000f80| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 6e 61 6d |value of| the nam|
|00000f90| 65 64 20 70 61 72 61 6d | 65 74 65 72 2e 0a 20 20 |ed param|eter.. |
|00000fa0| 20 20 20 2a 2f 0a 20 20 | 20 20 20 70 75 62 6c 69 | */. | publi|
|00000fb0| 63 20 53 74 72 69 6e 67 | 20 67 65 74 50 61 72 61 |c String| getPara|
|00000fc0| 6d 65 74 65 72 28 53 74 | 72 69 6e 67 20 6e 61 6d |meter(St|ring nam|
|00000fd0| 65 29 20 7b 0a 09 20 72 | 65 74 75 72 6e 20 73 74 |e) {.. r|eturn st|
|00000fe0| 75 62 2e 67 65 74 50 61 | 72 61 6d 65 74 65 72 28 |ub.getPa|rameter(|
|00000ff0| 6e 61 6d 65 29 3b 0a 20 | 20 20 20 20 7d 0a 0a 20 |name);. | }.. |
|00001000| 20 20 20 2f 2a 2a 0a 20 | 20 20 20 20 2a 20 44 65 | /**. | * De|
|00001010| 74 65 72 6d 69 6e 65 73 | 20 74 68 69 73 20 61 70 |termines| this ap|
|00001020| 70 6c 65 74 27 73 20 63 | 6f 6e 74 65 78 74 2c 20 |plet's c|ontext, |
|00001030| 77 68 69 63 68 20 61 6c | 6c 6f 77 73 20 74 68 65 |which al|lows the|
|00001040| 20 61 70 70 6c 65 74 20 | 74 6f 20 0a 20 20 20 20 | applet |to . |
|00001050| 20 2a 20 71 75 65 72 79 | 20 61 6e 64 20 61 66 66 | * query| and aff|
|00001060| 65 63 74 20 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d |ect the |environm|
|00001070| 65 6e 74 20 69 6e 20 77 | 68 69 63 68 20 69 74 20 |ent in w|hich it |
|00001080| 72 75 6e 73 2e 20 0a 20 | 20 20 20 20 2a 20 3c 70 |runs. . | * <p|
|00001090| 3e 0a 20 20 20 20 20 2a | 20 54 68 69 73 20 65 6e |>. *| This en|
|000010a0| 76 69 72 6f 6e 6d 65 6e | 74 20 6f 66 20 61 6e 20 |vironmen|t of an |
|000010b0| 61 70 70 6c 65 74 20 72 | 65 70 72 65 73 65 6e 74 |applet r|epresent|
|000010c0| 73 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 74 |s the do|cument t|
|000010d0| 68 61 74 20 0a 20 20 20 | 20 20 2a 20 63 6f 6e 74 |hat . | * cont|
|000010e0| 61 69 6e 73 20 74 68 65 | 20 61 70 70 6c 65 74 2e |ains the| applet.|
|000010f0| 20 0a 20 20 20 20 20 2a | 0a 20 20 20 20 20 2a 20 | . *|. * |
|00001100| 40 72 65 74 75 72 6e 20 | 20 74 68 65 20 61 70 70 |@return | the app|
|00001110| 6c 65 74 27 73 20 63 6f | 6e 74 65 78 74 2e 0a 20 |let's co|ntext.. |
|00001120| 20 20 20 20 2a 2f 0a 20 | 20 20 20 70 75 62 6c 69 | */. | publi|
|00001130| 63 20 41 70 70 6c 65 74 | 43 6f 6e 74 65 78 74 20 |c Applet|Context |
|00001140| 67 65 74 41 70 70 6c 65 | 74 43 6f 6e 74 65 78 74 |getApple|tContext|
|00001150| 28 29 20 7b 0a 09 72 65 | 74 75 72 6e 20 73 74 75 |() {..re|turn stu|
|00001160| 62 2e 67 65 74 41 70 70 | 6c 65 74 43 6f 6e 74 65 |b.getApp|letConte|
|00001170| 78 74 28 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 0a |xt();. | }. .|
|00001180| 20 20 20 20 2f 2a 2a 0a | 20 20 20 20 20 2a 20 52 | /**.| * R|
|00001190| 65 71 75 65 73 74 73 20 | 74 68 61 74 20 74 68 69 |equests |that thi|
|000011a0| 73 20 61 70 70 6c 65 74 | 20 62 65 20 72 65 73 69 |s applet| be resi|
|000011b0| 7a 65 64 2e 20 0a 20 20 | 20 20 20 2a 0a 20 20 20 |zed. . | *. |
|000011c0| 20 20 2a 20 40 70 61 72 | 61 6d 20 20 20 77 69 64 | * @par|am wid|
|000011d0| 74 68 20 20 20 20 74 68 | 65 20 6e 65 77 20 72 65 |th th|e new re|
|000011e0| 71 75 65 73 74 65 64 20 | 77 69 64 74 68 20 66 6f |quested |width fo|
|000011f0| 72 20 74 68 65 20 61 70 | 70 6c 65 74 2e 0a 20 20 |r the ap|plet.. |
|00001200| 20 20 20 2a 20 40 70 61 | 72 61 6d 20 20 20 68 65 | * @pa|ram he|
|00001210| 69 67 68 74 20 20 20 74 | 68 65 20 6e 65 77 20 72 |ight t|he new r|
|00001220| 65 71 75 65 73 74 65 64 | 20 68 65 69 67 68 74 20 |equested| height |
|00001230| 66 6f 72 20 74 68 65 20 | 61 70 70 6c 65 74 2e 0a |for the |applet..|
|00001240| 20 20 20 20 20 2a 2f 0a | 20 20 20 20 70 75 62 6c | */.| publ|
|00001250| 69 63 20 76 6f 69 64 20 | 72 65 73 69 7a 65 28 69 |ic void |resize(i|
|00001260| 6e 74 20 77 69 64 74 68 | 2c 20 69 6e 74 20 68 65 |nt width|, int he|
|00001270| 69 67 68 74 29 20 7b 0a | 09 44 69 6d 65 6e 73 69 |ight) {.|.Dimensi|
|00001280| 6f 6e 20 64 20 3d 20 73 | 69 7a 65 28 29 3b 0a 09 |on d = s|ize();..|
|00001290| 69 66 20 28 28 64 2e 77 | 69 64 74 68 20 21 3d 20 |if ((d.w|idth != |
|000012a0| 77 69 64 74 68 29 20 7c | 7c 20 28 64 2e 68 65 69 |width) ||| (d.hei|
|000012b0| 67 68 74 20 21 3d 20 68 | 65 69 67 68 74 29 29 20 |ght != h|eight)) |
|000012c0| 7b 0a 09 20 20 20 20 73 | 75 70 65 72 2e 72 65 73 |{.. s|uper.res|
|000012d0| 69 7a 65 28 77 69 64 74 | 68 2c 20 68 65 69 67 68 |ize(widt|h, heigh|
|000012e0| 74 29 3b 0a 09 20 20 20 | 20 69 66 20 28 73 74 75 |t);.. | if (stu|
|000012f0| 62 20 21 3d 20 6e 75 6c | 6c 29 20 7b 0a 09 09 73 |b != nul|l) {...s|
|00001300| 74 75 62 2e 61 70 70 6c | 65 74 52 65 73 69 7a 65 |tub.appl|etResize|
|00001310| 28 77 69 64 74 68 2c 20 | 68 65 69 67 68 74 29 3b |(width, |height);|
|00001320| 0a 09 20 20 20 20 7d 0a | 09 7d 0a 20 20 20 20 7d |.. }.|.}. }|
|00001330| 0a 0a 20 20 20 20 2f 2a | 2a 0a 20 20 20 20 20 2a |.. /*|*. *|
|00001340| 20 52 65 71 75 65 73 74 | 73 20 74 68 61 74 20 74 | Request|s that t|
|00001350| 68 69 73 20 61 70 70 6c | 65 74 20 62 65 20 72 65 |his appl|et be re|
|00001360| 73 69 7a 65 64 2e 20 0a | 20 20 20 20 20 2a 0a 20 |sized. .| *. |
|00001370| 20 20 20 20 2a 20 40 70 | 61 72 61 6d 20 20 20 64 | * @p|aram d|
|00001380| 20 20 20 61 6e 20 6f 62 | 6a 65 63 74 20 67 69 76 | an ob|ject giv|
|00001390| 69 6e 67 20 74 68 65 20 | 6e 65 77 20 77 69 64 74 |ing the |new widt|
|000013a0| 68 20 61 6e 64 20 68 65 | 69 67 68 74 2e 0a 20 20 |h and he|ight.. |
|000013b0| 20 20 20 2a 2f 20 20 20 | 20 0a 20 20 20 20 70 75 | */ | . pu|
|000013c0| 62 6c 69 63 20 76 6f 69 | 64 20 72 65 73 69 7a 65 |blic voi|d resize|
|000013d0| 28 44 69 6d 65 6e 73 69 | 6f 6e 20 64 29 20 7b 0a |(Dimensi|on d) {.|
|000013e0| 09 72 65 73 69 7a 65 28 | 64 2e 77 69 64 74 68 2c |.resize(|d.width,|
|000013f0| 20 64 2e 68 65 69 67 68 | 74 29 3b 0a 20 20 20 20 | d.heigh|t);. |
|00001400| 7d 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |}.. /|**. |
|00001410| 2a 20 52 65 71 75 65 73 | 74 73 20 74 68 61 74 20 |* Reques|ts that |
|00001420| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 73 74 72 |the argu|ment str|
|00001430| 69 6e 67 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ing be d|isplayed|
|00001440| 20 69 6e 20 74 68 65 20 | 0a 20 20 20 20 20 2a 20 | in the |. * |
|00001450| 22 73 74 61 74 75 73 20 | 77 69 6e 64 6f 77 22 2e |"status |window".|
|00001460| 20 4d 61 6e 79 20 62 72 | 6f 77 73 65 72 73 20 61 | Many br|owsers a|
|00001470| 6e 64 20 61 70 70 6c 65 | 74 20 76 69 65 77 65 72 |nd apple|t viewer|
|00001480| 73 20 0a 20 20 20 20 20 | 2a 20 70 72 6f 76 69 64 |s . |* provid|
|00001490| 65 20 73 75 63 68 20 61 | 20 77 69 6e 64 6f 77 2c |e such a| window,|
|000014a0| 20 77 68 65 72 65 20 74 | 68 65 20 61 70 70 6c 69 | where t|he appli|
|000014b0| 63 61 74 69 6f 6e 20 63 | 61 6e 20 69 6e 66 6f 72 |cation c|an infor|
|000014c0| 6d 20 75 73 65 72 73 20 | 6f 66 20 0a 20 20 20 20 |m users |of . |
|000014d0| 20 2a 20 69 74 73 20 63 | 75 72 72 65 6e 74 20 73 | * its c|urrent s|
|000014e0| 74 61 74 65 2e 20 0a 20 | 20 20 20 20 2a 0a 20 20 |tate. . | *. |
|000014f0| 20 20 20 2a 20 40 70 61 | 72 61 6d 20 20 20 6d 73 | * @pa|ram ms|
|00001500| 67 20 20 20 61 20 73 74 | 72 69 6e 67 20 74 6f 20 |g a st|ring to |
|00001510| 64 69 73 70 6c 61 79 20 | 69 6e 20 74 68 65 20 73 |display |in the s|
|00001520| 74 61 74 75 73 20 77 69 | 6e 64 6f 77 2e 0a 20 20 |tatus wi|ndow.. |
|00001530| 20 20 20 2a 2f 0a 20 20 | 20 20 70 75 62 6c 69 63 | */. | public|
|00001540| 20 76 6f 69 64 20 73 68 | 6f 77 53 74 61 74 75 73 | void sh|owStatus|
|00001550| 28 53 74 72 69 6e 67 20 | 6d 73 67 29 20 7b 0a 09 |(String |msg) {..|
|00001560| 67 65 74 41 70 70 6c 65 | 74 43 6f 6e 74 65 78 74 |getApple|tContext|
|00001570| 28 29 2e 73 68 6f 77 53 | 74 61 74 75 73 28 6d 73 |().showS|tatus(ms|
|00001580| 67 29 3b 0a 20 20 20 20 | 7d 0a 0a 20 20 20 20 2f |g);. |}.. /|
|00001590| 2a 2a 0a 20 20 20 20 20 | 2a 20 52 65 74 75 72 6e |**. |* Return|
|000015a0| 73 20 61 6e 20 3c 63 6f | 64 65 3e 49 6d 61 67 65 |s an <co|de>Image|
|000015b0| 3c 2f 63 6f 64 65 3e 20 | 6f 62 6a 65 63 74 20 74 |</code> |object t|
|000015c0| 68 61 74 20 63 61 6e 20 | 74 68 65 6e 20 62 65 20 |hat can |then be |
|000015d0| 70 61 69 6e 74 65 64 20 | 6f 6e 20 0a 20 20 20 20 |painted |on . |
|000015e0| 20 2a 20 74 68 65 20 73 | 63 72 65 65 6e 2e 20 54 | * the s|creen. T|
|000015f0| 68 65 20 3c 63 6f 64 65 | 3e 75 72 6c 3c 2f 63 6f |he <code|>url</co|
|00001600| 64 65 3e 20 74 68 61 74 | 20 69 73 20 70 61 73 73 |de> that| is pass|
|00001610| 65 64 20 61 73 20 61 6e | 20 61 72 67 75 6d 65 6e |ed as an| argumen|
|00001620| 74 20 0a 20 20 20 20 20 | 2a 20 6d 75 73 74 20 73 |t . |* must s|
|00001630| 70 65 63 69 66 79 20 61 | 6e 20 61 62 73 6f 6c 75 |pecify a|n absolu|
|00001640| 74 65 20 55 52 4c 2e 20 | 0a 20 20 20 20 20 2a 20 |te URL. |. * |
|00001650| 3c 70 3e 0a 20 20 20 20 | 20 2a 20 54 68 69 73 20 |<p>. | * This |
|00001660| 6d 65 74 68 6f 64 20 61 | 6c 77 61 79 73 20 72 65 |method a|lways re|
|00001670| 74 75 72 6e 73 20 69 6d | 6d 65 64 69 61 74 65 6c |turns im|mediatel|
|00001680| 79 2c 20 77 68 65 74 68 | 65 72 20 6f 72 20 6e 6f |y, wheth|er or no|
|00001690| 74 20 74 68 65 20 69 6d | 61 67 65 20 0a 20 20 20 |t the im|age . |
|000016a0| 20 20 2a 20 65 78 69 73 | 74 73 2e 20 57 68 65 6e | * exis|ts. When|
|000016b0| 20 74 68 69 73 20 61 70 | 70 6c 65 74 20 61 74 74 | this ap|plet att|
|000016c0| 65 6d 70 74 73 20 74 6f | 20 64 72 61 77 20 74 68 |empts to| draw th|
|000016d0| 65 20 69 6d 61 67 65 20 | 6f 6e 20 74 68 65 20 73 |e image |on the s|
|000016e0| 63 72 65 65 6e 2c 20 0a | 20 20 20 20 20 2a 20 74 |creen, .| * t|
|000016f0| 68 65 20 64 61 74 61 20 | 77 69 6c 6c 20 62 65 20 |he data |will be |
|00001700| 6c 6f 61 64 65 64 2e 20 | 54 68 65 20 67 72 61 70 |loaded. |The grap|
|00001710| 68 69 63 73 20 70 72 69 | 6d 69 74 69 76 65 73 20 |hics pri|mitives |
|00001720| 74 68 61 74 20 64 72 61 | 77 20 74 68 65 20 0a 20 |that dra|w the . |
|00001730| 20 20 20 20 2a 20 69 6d | 61 67 65 20 77 69 6c 6c | * im|age will|
|00001740| 20 69 6e 63 72 65 6d 65 | 6e 74 61 6c 6c 79 20 70 | increme|ntally p|
|00001750| 61 69 6e 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |aint on |the scre|
|00001760| 65 6e 2e 20 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |en. . | *. |
|00001770| 20 2a 20 40 70 61 72 61 | 6d 20 20 20 75 72 6c 20 | * @para|m url |
|00001780| 20 20 61 6e 20 61 62 73 | 6f 6c 75 74 65 20 55 52 | an abs|olute UR|
|00001790| 4c 20 67 69 76 69 6e 67 | 20 74 68 65 20 6c 6f 63 |L giving| the loc|
|000017a0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 69 6d 61 |ation of| the ima|
|000017b0| 67 65 2e 0a 20 20 20 20 | 20 2a 20 40 72 65 74 75 |ge.. | * @retu|
|000017c0| 72 6e 20 20 74 68 65 20 | 69 6d 61 67 65 20 61 74 |rn the |image at|
|000017d0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 55 | the spe|cified U|
|000017e0| 52 4c 2e 0a 20 20 20 20 | 20 2a 20 40 73 65 65 20 |RL.. | * @see |
|000017f0| 20 20 20 20 6a 61 76 61 | 2e 61 77 74 2e 49 6d 61 | java|.awt.Ima|
|00001800| 67 65 0a 20 20 20 20 20 | 2a 2f 0a 20 20 20 20 70 |ge. |*/. p|
|00001810| 75 62 6c 69 63 20 49 6d | 61 67 65 20 67 65 74 49 |ublic Im|age getI|
|00001820| 6d 61 67 65 28 55 52 4c | 20 75 72 6c 29 20 7b 0a |mage(URL| url) {.|
|00001830| 09 72 65 74 75 72 6e 20 | 67 65 74 41 70 70 6c 65 |.return |getApple|
|00001840| 74 43 6f 6e 74 65 78 74 | 28 29 2e 67 65 74 49 6d |tContext|().getIm|
|00001850| 61 67 65 28 75 72 6c 29 | 3b 0a 20 20 20 20 7d 0a |age(url)|;. }.|
|00001860| 0a 20 20 20 20 2f 2a 2a | 0a 20 20 20 20 20 2a 20 |. /**|. * |
|00001870| 52 65 74 75 72 6e 73 20 | 61 6e 20 3c 63 6f 64 65 |Returns |an <code|
|00001880| 3e 49 6d 61 67 65 3c 2f | 63 6f 64 65 3e 20 6f 62 |>Image</|code> ob|
|00001890| 6a 65 63 74 20 74 68 61 | 74 20 63 61 6e 20 74 68 |ject tha|t can th|
|000018a0| 65 6e 20 62 65 20 70 61 | 69 6e 74 65 64 20 6f 6e |en be pa|inted on|
|000018b0| 20 0a 20 20 20 20 20 2a | 20 74 68 65 20 73 63 72 | . *| the scr|
|000018c0| 65 65 6e 2e 20 54 68 65 | 20 3c 63 6f 64 65 3e 75 |een. The| <code>u|
|000018d0| 72 6c 3c 2f 63 6f 64 65 | 3e 20 61 72 67 75 6d 65 |rl</code|> argume|
|000018e0| 6e 74 20 6d 75 73 74 20 | 73 70 65 63 69 66 79 20 |nt must |specify |
|000018f0| 61 6e 20 61 62 73 6f 6c | 75 74 65 20 0a 20 20 20 |an absol|ute . |
|00001900| 20 20 2a 20 55 52 4c 2e | 20 54 68 65 20 3c 63 6f | * URL.| The <co|
|00001910| 64 65 3e 6e 61 6d 65 3c | 2f 63 6f 64 65 3e 20 61 |de>name<|/code> a|
|00001920| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 20 73 70 65 |rgument |is a spe|
|00001930| 63 69 66 69 65 72 20 74 | 68 61 74 20 69 73 20 0a |cifier t|hat is .|
|00001940| 20 20 20 20 20 2a 20 72 | 65 6c 61 74 69 76 65 20 | * r|elative |
|00001950| 74 6f 20 74 68 65 20 3c | 63 6f 64 65 3e 75 72 6c |to the <|code>url|
|00001960| 3c 2f 63 6f 64 65 3e 20 | 61 72 67 75 6d 65 6e 74 |</code> |argument|
|00001970| 2e 20 0a 20 20 20 20 20 | 2a 20 3c 70 3e 0a 20 20 |. . |* <p>. |
|00001980| 20 20 20 2a 20 54 68 69 | 73 20 6d 65 74 68 6f 64 | * Thi|s method|
|00001990| 20 61 6c 77 61 79 73 20 | 72 65 74 75 72 6e 73 20 | always |returns |
|000019a0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 2c 20 77 68 65 |immediat|ely, whe|
|000019b0| 74 68 65 72 20 6f 72 20 | 6e 6f 74 20 74 68 65 20 |ther or |not the |
|000019c0| 69 6d 61 67 65 20 0a 20 | 20 20 20 20 2a 20 65 78 |image . | * ex|
|000019d0| 69 73 74 73 2e 20 57 68 | 65 6e 20 74 68 69 73 20 |ists. Wh|en this |
|000019e0| 61 70 70 6c 65 74 20 61 | 74 74 65 6d 70 74 73 20 |applet a|ttempts |
|000019f0| 74 6f 20 64 72 61 77 20 | 74 68 65 20 69 6d 61 67 |to draw |the imag|
|00001a00| 65 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 2c |e on the| screen,|
|00001a10| 20 0a 20 20 20 20 20 2a | 20 74 68 65 20 64 61 74 | . *| the dat|
|00001a20| 61 20 77 69 6c 6c 20 62 | 65 20 6c 6f 61 64 65 64 |a will b|e loaded|
|00001a30| 2e 20 54 68 65 20 67 72 | 61 70 68 69 63 73 20 70 |. The gr|aphics p|
|00001a40| 72 69 6d 69 74 69 76 65 | 73 20 74 68 61 74 20 64 |rimitive|s that d|
|00001a50| 72 61 77 20 74 68 65 20 | 0a 20 20 20 20 20 2a 20 |raw the |. * |
|00001a60| 69 6d 61 67 65 20 77 69 | 6c 6c 20 69 6e 63 72 65 |image wi|ll incre|
|00001a70| 6d 65 6e 74 61 6c 6c 79 | 20 70 61 69 6e 74 20 6f |mentally| paint o|
|00001a80| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 2e 20 0a 20 |n the sc|reen. . |
|00001a90| 20 20 20 20 2a 0a 20 20 | 20 20 20 2a 20 40 70 61 | *. | * @pa|
|00001aa0| 72 61 6d 20 20 20 75 72 | 6c 20 20 20 20 61 6e 20 |ram ur|l an |
|00001ab0| 61 62 73 6f 6c 75 74 65 | 20 55 52 4c 20 67 69 76 |absolute| URL giv|
|00001ac0| 69 6e 67 20 74 68 65 20 | 62 61 73 65 20 6c 6f 63 |ing the |base loc|
|00001ad0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 69 6d 61 |ation of| the ima|
|00001ae0| 67 65 2e 0a 20 20 20 20 | 20 2a 20 40 70 61 72 61 |ge.. | * @para|
|00001af0| 6d 20 20 20 6e 61 6d 65 | 20 20 20 74 68 65 20 6c |m name| the l|
|00001b00| 6f 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 69 |ocation |of the i|
|00001b10| 6d 61 67 65 2c 20 72 65 | 6c 61 74 69 76 65 20 74 |mage, re|lative t|
|00001b20| 6f 20 74 68 65 0a 20 20 | 20 20 20 2a 20 20 20 20 |o the. | * |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3c 63 6f | | <co|
|00001b40| 64 65 3e 75 72 6c 3c 2f | 63 6f 64 65 3e 20 61 72 |de>url</|code> ar|
|00001b50| 67 75 6d 65 6e 74 2e 0a | 20 20 20 20 20 2a 20 40 |gument..| * @|
|00001b60| 72 65 74 75 72 6e 20 20 | 74 68 65 20 69 6d 61 67 |return |the imag|
|00001b70| 65 20 61 74 20 74 68 65 | 20 73 70 65 63 69 66 69 |e at the| specifi|
|00001b80| 65 64 20 55 52 4c 2e 0a | 20 20 20 20 20 2a 20 40 |ed URL..| * @|
|00001b90| 73 65 65 20 20 20 20 20 | 6a 61 76 61 2e 61 77 74 |see |java.awt|
|00001ba0| 2e 49 6d 61 67 65 0a 20 | 20 20 20 20 2a 2f 0a 20 |.Image. | */. |
|00001bb0| 20 20 20 70 75 62 6c 69 | 63 20 49 6d 61 67 65 20 | publi|c Image |
|00001bc0| 67 65 74 49 6d 61 67 65 | 28 55 52 4c 20 75 72 6c |getImage|(URL url|
|00001bd0| 2c 20 53 74 72 69 6e 67 | 20 6e 61 6d 65 29 20 7b |, String| name) {|
|00001be0| 0a 09 74 72 79 20 7b 0a | 09 20 20 20 20 72 65 74 |..try {.|. ret|
|00001bf0| 75 72 6e 20 67 65 74 49 | 6d 61 67 65 28 6e 65 77 |urn getI|mage(new|
|00001c00| 20 55 52 4c 28 75 72 6c | 2c 20 6e 61 6d 65 29 29 | URL(url|, name))|
|00001c10| 3b 0a 09 7d 20 63 61 74 | 63 68 20 28 4d 61 6c 66 |;..} cat|ch (Malf|
|00001c20| 6f 72 6d 65 64 55 52 4c | 45 78 63 65 70 74 69 6f |ormedURL|Exceptio|
|00001c30| 6e 20 65 29 20 7b 0a 09 | 20 20 20 20 72 65 74 75 |n e) {..| retu|
|00001c40| 72 6e 20 6e 75 6c 6c 3b | 0a 09 7d 0a 20 20 20 20 |rn null;|..}. |
|00001c50| 7d 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |}.. /|**. |
|00001c60| 2a 20 47 65 74 20 61 6e | 20 61 75 64 69 6f 20 63 |* Get an| audio c|
|00001c70| 6c 69 70 20 66 72 6f 6d | 20 74 68 65 20 67 69 76 |lip from| the giv|
|00001c80| 65 6e 20 55 52 4c 0a 20 | 20 20 20 20 2a 20 40 70 |en URL. | * @p|
|00001c90| 61 72 61 6d 20 75 72 6c | 20 50 6f 69 6e 74 73 20 |aram url| Points |
|00001ca0| 74 6f 20 74 68 65 20 61 | 75 64 69 6f 20 63 6c 69 |to the a|udio cli|
|00001cb0| 70 0a 20 20 20 20 20 2a | 0a 20 20 20 20 20 2a 20 |p. *|. * |
|00001cc0| 40 73 69 6e 63 65 20 20 | 20 20 20 20 20 4a 44 4b |@since | JDK|
|00001cd0| 31 2e 32 0a 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 |1.2. | */. |
|00001ce0| 70 75 62 6c 69 63 20 66 | 69 6e 61 6c 20 73 74 61 |public f|inal sta|
|00001cf0| 74 69 63 20 41 75 64 69 | 6f 43 6c 69 70 20 6e 65 |tic Audi|oClip ne|
|00001d00| 77 41 75 64 69 6f 43 6c | 69 70 28 55 52 4c 20 75 |wAudioCl|ip(URL u|
|00001d10| 72 6c 29 20 7b 0a 20 20 | 20 20 20 20 20 20 72 65 |rl) {. | re|
|00001d20| 74 75 72 6e 20 6e 65 77 | 20 73 75 6e 2e 61 70 70 |turn new| sun.app|
|00001d30| 6c 65 74 2e 41 70 70 6c | 65 74 41 75 64 69 6f 43 |let.Appl|etAudioC|
|00001d40| 6c 69 70 28 75 72 6c 29 | 3b 0a 20 20 20 20 7d 0a |lip(url)|;. }.|
|00001d50| 0a 20 20 20 20 2f 2a 2a | 0a 20 20 20 20 20 2a 20 |. /**|. * |
|00001d60| 52 65 74 75 72 6e 73 20 | 74 68 65 20 3c 63 6f 64 |Returns |the <cod|
|00001d70| 65 3e 41 75 64 69 6f 43 | 6c 69 70 3c 2f 63 6f 64 |e>AudioC|lip</cod|
|00001d80| 65 3e 20 6f 62 6a 65 63 | 74 20 73 70 65 63 69 66 |e> objec|t specif|
|00001d90| 69 65 64 20 62 79 20 74 | 68 65 20 0a 20 20 20 20 |ied by t|he . |
|00001da0| 20 2a 20 3c 63 6f 64 65 | 3e 55 52 4c 3c 2f 63 6f | * <code|>URL</co|
|00001db0| 64 65 3e 20 61 72 67 75 | 6d 65 6e 74 2e 20 0a 20 |de> argu|ment. . |
|00001dc0| 20 20 20 20 2a 20 3c 70 | 3e 0a 20 20 20 20 20 2a | * <p|>. *|
|00001dd0| 20 54 68 69 73 20 6d 65 | 74 68 6f 64 20 61 6c 77 | This me|thod alw|
|00001de0| 61 79 73 20 72 65 74 75 | 72 6e 73 20 69 6d 6d 65 |ays retu|rns imme|
|00001df0| 64 69 61 74 65 6c 79 2c | 20 77 68 65 74 68 65 72 |diately,| whether|
|00001e00| 20 6f 72 20 6e 6f 74 20 | 74 68 65 20 61 75 64 69 | or not |the audi|
|00001e10| 6f 20 0a 20 20 20 20 20 | 2a 20 63 6c 69 70 20 65 |o . |* clip e|
|00001e20| 78 69 73 74 73 2e 20 57 | 68 65 6e 20 74 68 69 73 |xists. W|hen this|
|00001e30| 20 61 70 70 6c 65 74 20 | 61 74 74 65 6d 70 74 73 | applet |attempts|
|00001e40| 20 74 6f 20 70 6c 61 79 | 20 74 68 65 20 61 75 64 | to play| the aud|
|00001e50| 69 6f 20 63 6c 69 70 2c | 20 74 68 65 20 0a 20 20 |io clip,| the . |
|00001e60| 20 20 20 2a 20 64 61 74 | 61 20 77 69 6c 6c 20 62 | * dat|a will b|
|00001e70| 65 20 6c 6f 61 64 65 64 | 2e 20 0a 20 20 20 20 20 |e loaded|. . |
|00001e80| 2a 0a 20 20 20 20 20 2a | 20 40 70 61 72 61 6d 20 |*. *| @param |
|00001e90| 20 20 75 72 6c 20 20 61 | 6e 20 61 62 73 6f 6c 75 | url a|n absolu|
|00001ea0| 74 65 20 55 52 4c 20 67 | 69 76 69 6e 67 20 74 68 |te URL g|iving th|
|00001eb0| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 66 20 74 68 |e locati|on of th|
|00001ec0| 65 20 61 75 64 69 6f 20 | 63 6c 69 70 2e 0a 20 20 |e audio |clip.. |
|00001ed0| 20 20 20 2a 20 40 72 65 | 74 75 72 6e 20 20 74 68 | * @re|turn th|
|00001ee0| 65 20 61 75 64 69 6f 20 | 63 6c 69 70 20 61 74 20 |e audio |clip at |
|00001ef0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 55 52 |the spec|ified UR|
|00001f00| 4c 2e 0a 20 20 20 20 20 | 2a 20 40 73 65 65 20 20 |L.. |* @see |
|00001f10| 20 20 20 6a 61 76 61 2e | 61 70 70 6c 65 74 2e 41 | java.|applet.A|
|00001f20| 75 64 69 6f 43 6c 69 70 | 0a 20 20 20 20 20 2a 2f |udioClip|. */|
|00001f30| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 41 75 64 69 |. pub|lic Audi|
|00001f40| 6f 43 6c 69 70 20 67 65 | 74 41 75 64 69 6f 43 6c |oClip ge|tAudioCl|
|00001f50| 69 70 28 55 52 4c 20 75 | 72 6c 29 20 7b 0a 09 72 |ip(URL u|rl) {..r|
|00001f60| 65 74 75 72 6e 20 67 65 | 74 41 70 70 6c 65 74 43 |eturn ge|tAppletC|
|00001f70| 6f 6e 74 65 78 74 28 29 | 2e 67 65 74 41 75 64 69 |ontext()|.getAudi|
|00001f80| 6f 43 6c 69 70 28 75 72 | 6c 29 3b 0a 20 20 20 20 |oClip(ur|l);. |
|00001f90| 7d 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |}.. /|**. |
|00001fa0| 2a 20 52 65 74 75 72 6e | 73 20 74 68 65 20 3c 63 |* Return|s the <c|
|00001fb0| 6f 64 65 3e 41 75 64 69 | 6f 43 6c 69 70 3c 2f 63 |ode>Audi|oClip</c|
|00001fc0| 6f 64 65 3e 20 6f 62 6a | 65 63 74 20 73 70 65 63 |ode> obj|ect spec|
|00001fd0| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 0a 20 20 |ified by| the . |
|00001fe0| 20 20 20 2a 20 3c 63 6f | 64 65 3e 55 52 4c 3c 2f | * <co|de>URL</|
|00001ff0| 63 6f 64 65 3e 20 61 6e | 64 20 3c 63 6f 64 65 3e |code> an|d <code>|
|00002000| 6e 61 6d 65 3c 2f 63 6f | 64 65 3e 20 61 72 67 75 |name</co|de> argu|
|00002010| 6d 65 6e 74 73 2e 20 0a | 20 20 20 20 20 2a 20 3c |ments. .| * <|
|00002020| 70 3e 0a 20 20 20 20 20 | 2a 20 54 68 69 73 20 6d |p>. |* This m|
|00002030| 65 74 68 6f 64 20 61 6c | 77 61 79 73 20 72 65 74 |ethod al|ways ret|
|00002040| 75 72 6e 73 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |urns imm|ediately|
|00002050| 2c 20 77 68 65 74 68 65 | 72 20 6f 72 20 6e 6f 74 |, whethe|r or not|
|00002060| 20 74 68 65 20 61 75 64 | 69 6f 20 0a 20 20 20 20 | the aud|io . |
|00002070| 20 2a 20 63 6c 69 70 20 | 65 78 69 73 74 73 2e 20 | * clip |exists. |
|00002080| 57 68 65 6e 20 74 68 69 | 73 20 61 70 70 6c 65 74 |When thi|s applet|
|00002090| 20 61 74 74 65 6d 70 74 | 73 20 74 6f 20 70 6c 61 | attempt|s to pla|
|000020a0| 79 20 74 68 65 20 61 75 | 64 69 6f 20 63 6c 69 70 |y the au|dio clip|
|000020b0| 2c 20 74 68 65 20 0a 20 | 20 20 20 20 2a 20 64 61 |, the . | * da|
|000020c0| 74 61 20 77 69 6c 6c 20 | 62 65 20 6c 6f 61 64 65 |ta will |be loade|
|000020d0| 64 2e 20 0a 20 20 20 20 | 20 2a 20 0a 20 20 20 20 |d. . | * . |
|000020e0| 20 2a 20 40 70 61 72 61 | 6d 20 20 20 75 72 6c 20 | * @para|m url |
|000020f0| 20 20 20 61 6e 20 61 62 | 73 6f 6c 75 74 65 20 55 | an ab|solute U|
|00002100| 52 4c 20 67 69 76 69 6e | 67 20 74 68 65 20 62 61 |RL givin|g the ba|
|00002110| 73 65 20 6c 6f 63 61 74 | 69 6f 6e 20 6f 66 20 74 |se locat|ion of t|
|00002120| 68 65 0a 20 20 20 20 20 | 2a 20 20 20 20 20 20 20 |he. |* |
|00002130| 20 20 20 20 20 20 20 20 | 20 20 61 75 64 69 6f 20 | | audio |
|00002140| 63 6c 69 70 2e 0a 20 20 | 20 20 20 2a 20 40 70 61 |clip.. | * @pa|
|00002150| 72 61 6d 20 20 20 6e 61 | 6d 65 20 20 20 74 68 65 |ram na|me the|
|00002160| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 | locatio|n of the|
|00002170| 20 61 75 64 69 6f 20 63 | 6c 69 70 2c 20 72 65 6c | audio c|lip, rel|
|00002180| 61 74 69 76 65 20 74 6f | 20 74 68 65 0a 20 20 20 |ative to| the. |
|00002190| 20 20 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|000021a0| 20 20 20 20 3c 63 6f 64 | 65 3e 75 72 6c 3c 2f 63 | <cod|e>url</c|
|000021b0| 6f 64 65 3e 20 61 72 67 | 75 6d 65 6e 74 2e 0a 20 |ode> arg|ument.. |
|000021c0| 20 20 20 20 2a 20 40 72 | 65 74 75 72 6e 20 20 74 | * @r|eturn t|
|000021d0| 68 65 20 61 75 64 69 6f | 20 63 6c 69 70 20 61 74 |he audio| clip at|
|000021e0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 55 | the spe|cified U|
|000021f0| 52 4c 2e 0a 20 20 20 20 | 20 2a 20 40 73 65 65 20 |RL.. | * @see |
|00002200| 20 20 20 20 6a 61 76 61 | 2e 61 70 70 6c 65 74 2e | java|.applet.|
|00002210| 41 75 64 69 6f 43 6c 69 | 70 0a 20 20 20 20 20 2a |AudioCli|p. *|
|00002220| 2f 0a 20 20 20 20 70 75 | 62 6c 69 63 20 41 75 64 |/. pu|blic Aud|
|00002230| 69 6f 43 6c 69 70 20 67 | 65 74 41 75 64 69 6f 43 |ioClip g|etAudioC|
|00002240| 6c 69 70 28 55 52 4c 20 | 75 72 6c 2c 20 53 74 72 |lip(URL |url, Str|
|00002250| 69 6e 67 20 6e 61 6d 65 | 29 20 7b 0a 09 74 72 79 |ing name|) {..try|
|00002260| 20 7b 0a 09 20 20 20 20 | 72 65 74 75 72 6e 20 67 | {.. |return g|
|00002270| 65 74 41 75 64 69 6f 43 | 6c 69 70 28 6e 65 77 20 |etAudioC|lip(new |
|00002280| 55 52 4c 28 75 72 6c 2c | 20 6e 61 6d 65 29 29 3b |URL(url,| name));|
|00002290| 0a 09 7d 20 63 61 74 63 | 68 20 28 4d 61 6c 66 6f |..} catc|h (Malfo|
|000022a0| 72 6d 65 64 55 52 4c 45 | 78 63 65 70 74 69 6f 6e |rmedURLE|xception|
|000022b0| 20 65 29 20 7b 0a 09 20 | 20 20 20 72 65 74 75 72 | e) {.. | retur|
|000022c0| 6e 20 6e 75 6c 6c 3b 0a | 09 7d 0a 20 20 20 20 7d |n null;.|.}. }|
|000022d0| 0a 0a 20 20 20 20 2f 2a | 2a 0a 20 20 20 20 20 2a |.. /*|*. *|
|000022e0| 20 52 65 74 75 72 6e 73 | 20 69 6e 66 6f 72 6d 61 | Returns| informa|
|000022f0| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 69 73 20 |tion abo|ut this |
|00002300| 61 70 70 6c 65 74 2e 20 | 41 6e 20 61 70 70 6c 65 |applet. |An apple|
|00002310| 74 20 73 68 6f 75 6c 64 | 20 6f 76 65 72 72 69 64 |t should| overrid|
|00002320| 65 20 0a 20 20 20 20 20 | 2a 20 74 68 69 73 20 6d |e . |* this m|
|00002330| 65 74 68 6f 64 20 74 6f | 20 72 65 74 75 72 6e 20 |ethod to| return |
|00002340| 61 20 3c 63 6f 64 65 3e | 53 74 72 69 6e 67 3c 2f |a <code>|String</|
|00002350| 63 6f 64 65 3e 20 63 6f | 6e 74 61 69 6e 69 6e 67 |code> co|ntaining|
|00002360| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 0a 20 20 | informa|tion . |
|00002370| 20 20 20 2a 20 61 62 6f | 75 74 20 74 68 65 20 61 | * abo|ut the a|
|00002380| 75 74 68 6f 72 2c 20 76 | 65 72 73 69 6f 6e 2c 20 |uthor, v|ersion, |
|00002390| 61 6e 64 20 63 6f 70 79 | 72 69 67 68 74 20 6f 66 |and copy|right of|
|000023a0| 20 74 68 65 20 61 70 70 | 6c 65 74 2e 20 0a 20 20 | the app|let. . |
|000023b0| 20 20 20 2a 20 3c 70 3e | 0a 20 20 20 20 20 2a 20 | * <p>|. * |
|000023c0| 54 68 65 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |The impl|ementati|
|000023d0| 6f 6e 20 6f 66 20 74 68 | 69 73 20 6d 65 74 68 6f |on of th|is metho|
|000023e0| 64 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |d provid|ed by th|
|000023f0| 65 20 0a 20 20 20 20 20 | 2a 20 3c 63 6f 64 65 3e |e . |* <code>|
|00002400| 41 70 70 6c 65 74 3c 2f | 63 6f 64 65 3e 20 63 6c |Applet</|code> cl|
|00002410| 61 73 73 20 72 65 74 75 | 72 6e 73 20 3c 63 6f 64 |ass retu|rns <cod|
|00002420| 65 3e 6e 75 6c 6c 3c 2f | 63 6f 64 65 3e 2e 20 0a |e>null</|code>. .|
|00002430| 20 20 20 20 20 2a 0a 20 | 20 20 20 20 2a 20 40 72 | *. | * @r|
|00002440| 65 74 75 72 6e 20 20 61 | 20 73 74 72 69 6e 67 20 |eturn a| string |
|00002450| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 69 6e 66 6f 72 |containi|ng infor|
|00002460| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 74 68 65 |mation a|bout the|
|00002470| 20 61 75 74 68 6f 72 2c | 20 76 65 72 73 69 6f 6e | author,| version|
|00002480| 2c 20 61 6e 64 0a 20 20 | 20 20 20 2a 20 20 20 20 |, and. | * |
|00002490| 20 20 20 20 20 20 63 6f | 70 79 72 69 67 68 74 20 | co|pyright |
|000024a0| 6f 66 20 74 68 65 20 61 | 70 70 6c 65 74 2e 0a 20 |of the a|pplet.. |
|000024b0| 20 20 20 20 2a 2f 0a 20 | 20 20 20 70 75 62 6c 69 | */. | publi|
|000024c0| 63 20 53 74 72 69 6e 67 | 20 67 65 74 41 70 70 6c |c String| getAppl|
|000024d0| 65 74 49 6e 66 6f 28 29 | 20 7b 0a 09 72 65 74 75 |etInfo()| {..retu|
|000024e0| 72 6e 20 6e 75 6c 6c 3b | 0a 20 20 20 20 7d 0a 0a |rn null;|. }..|
|000024f0| 20 20 20 20 2f 2a 2a 20 | 0a 20 20 20 20 20 2a 20 | /** |. * |
|00002500| 47 65 74 73 20 74 68 65 | 20 4c 6f 63 61 6c 65 20 |Gets the| Locale |
|00002510| 66 6f 72 20 74 68 65 20 | 61 70 70 6c 65 74 2c 20 |for the |applet, |
|00002520| 69 66 20 69 74 20 68 61 | 73 20 62 65 65 6e 20 73 |if it ha|s been s|
|00002530| 65 74 2e 0a 20 20 20 20 | 20 2a 20 49 66 20 6e 6f |et.. | * If no|
|00002540| 20 4c 6f 63 61 6c 65 20 | 68 61 73 20 62 65 65 6e | Locale |has been|
|00002550| 20 73 65 74 2c 20 74 68 | 65 6e 20 74 68 65 20 64 | set, th|en the d|
|00002560| 65 66 61 75 6c 74 20 4c | 6f 63 61 6c 65 20 0a 20 |efault L|ocale . |
|00002570| 20 20 20 20 2a 20 69 73 | 20 72 65 74 75 72 6e 65 | * is| returne|
|00002580| 64 2e 0a 20 20 20 20 20 | 2a 0a 20 20 20 20 20 2a |d.. |*. *|
|00002590| 20 40 72 65 74 75 72 6e | 20 20 74 68 65 20 4c 6f | @return| the Lo|
|000025a0| 63 61 6c 65 20 66 6f 72 | 20 74 68 65 20 61 70 70 |cale for| the app|
|000025b0| 6c 65 74 0a 20 20 20 20 | 20 2a 20 40 73 69 6e 63 |let. | * @sinc|
|000025c0| 65 20 20 20 4a 44 4b 31 | 2e 31 0a 20 20 20 20 20 |e JDK1|.1. |
|000025d0| 2a 2f 0a 0a 20 20 20 20 | 70 75 62 6c 69 63 20 4c |*/.. |public L|
|000025e0| 6f 63 61 6c 65 20 67 65 | 74 4c 6f 63 61 6c 65 28 |ocale ge|tLocale(|
|000025f0| 29 20 7b 0a 20 20 20 20 | 20 20 4c 6f 63 61 6c 65 |) {. | Locale|
|00002600| 20 6c 6f 63 61 6c 65 20 | 3d 20 73 75 70 65 72 2e | locale |= super.|
|00002610| 67 65 74 4c 6f 63 61 6c | 65 28 29 3b 0a 20 20 20 |getLocal|e();. |
|00002620| 20 20 20 69 66 20 28 6c | 6f 63 61 6c 65 20 3d 3d | if (l|ocale ==|
|00002630| 20 6e 75 6c 6c 29 20 7b | 0a 09 72 65 74 75 72 6e | null) {|..return|
|00002640| 20 4c 6f 63 61 6c 65 2e | 67 65 74 44 65 66 61 75 | Locale.|getDefau|
|00002650| 6c 74 28 29 3b 0a 20 20 | 20 20 20 20 7d 0a 20 20 |lt();. | }. |
|00002660| 20 20 20 20 72 65 74 75 | 72 6e 20 6c 6f 63 61 6c | retu|rn local|
|00002670| 65 3b 0a 20 20 20 20 7d | 0a 0a 20 20 20 20 2f 2a |e;. }|.. /*|
|00002680| 2a 0a 20 20 20 20 20 2a | 20 52 65 74 75 72 6e 73 |*. *| Returns|
|00002690| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|000026a0| 75 74 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |ut the p|arameter|
|000026b0| 73 20 74 68 61 6e 20 61 | 72 65 20 75 6e 64 65 72 |s than a|re under|
|000026c0| 73 74 6f 6f 64 20 62 79 | 20 0a 20 20 20 20 20 2a |stood by| . *|
|000026d0| 20 74 68 69 73 20 61 70 | 70 6c 65 74 2e 20 41 6e | this ap|plet. An|
|000026e0| 20 61 70 70 6c 65 74 20 | 73 68 6f 75 6c 64 20 6f | applet |should o|
|000026f0| 76 65 72 72 69 64 65 20 | 74 68 69 73 20 6d 65 74 |verride |this met|
|00002700| 68 6f 64 20 74 6f 20 72 | 65 74 75 72 6e 20 61 6e |hod to r|eturn an|
|00002710| 20 0a 20 20 20 20 20 2a | 20 61 72 72 61 79 20 6f | . *| array o|
|00002720| 66 20 3c 63 6f 64 65 3e | 53 74 72 69 6e 67 73 3c |f <code>|Strings<|
|00002730| 2f 63 6f 64 65 3e 20 64 | 65 73 63 72 69 62 69 6e |/code> d|escribin|
|00002740| 67 20 74 68 65 73 65 20 | 70 61 72 61 6d 65 74 65 |g these |paramete|
|00002750| 72 73 2e 20 0a 20 20 20 | 20 20 2a 20 3c 70 3e 0a |rs. . | * <p>.|
|00002760| 20 20 20 20 20 2a 20 45 | 61 63 68 20 65 6c 65 6d | * E|ach elem|
|00002770| 65 6e 74 20 6f 66 20 74 | 68 65 20 61 72 72 61 79 |ent of t|he array|
|00002780| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 20 73 65 74 | should |be a set|
|00002790| 20 6f 66 20 74 68 72 65 | 65 20 0a 20 20 20 20 20 | of thre|e . |
|000027a0| 2a 20 3c 63 6f 64 65 3e | 53 74 72 69 6e 67 73 3c |* <code>|Strings<|
|000027b0| 2f 63 6f 64 65 3e 20 63 | 6f 6e 74 61 69 6e 69 6e |/code> c|ontainin|
|000027c0| 67 20 74 68 65 20 6e 61 | 6d 65 2c 20 74 68 65 20 |g the na|me, the |
|000027d0| 74 79 70 65 2c 20 61 6e | 64 20 61 20 0a 20 20 20 |type, an|d a . |
|000027e0| 20 20 2a 20 64 65 73 63 | 72 69 70 74 69 6f 6e 2e | * desc|ription.|
|000027f0| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 3a 0a 20 20 | For exa|mple:. |
|00002800| 20 20 20 2a 20 3c 70 3e | 3c 62 6c 6f 63 6b 71 75 | * <p>|<blockqu|
|00002810| 6f 74 65 3e 3c 70 72 65 | 3e 0a 20 20 20 20 20 2a |ote><pre|>. *|
|00002820| 20 53 74 72 69 6e 67 20 | 70 69 6e 66 6f 5b 5d 5b | String |pinfo[][|
|00002830| 5d 20 3d 20 7b 0a 20 20 | 20 20 20 2a 09 20 7b 22 |] = {. | *. {"|
|00002840| 66 70 73 22 2c 20 20 20 | 20 22 31 2d 31 30 22 2c |fps", | "1-10",|
|00002850| 20 20 20 20 22 66 72 61 | 6d 65 73 20 70 65 72 20 | "fra|mes per |
|00002860| 73 65 63 6f 6e 64 22 7d | 2c 0a 20 20 20 20 20 2a |second"}|,. *|
|00002870| 09 20 7b 22 72 65 70 65 | 61 74 22 2c 20 22 62 6f |. {"repe|at", "bo|
|00002880| 6f 6c 65 61 6e 22 2c 20 | 22 72 65 70 65 61 74 20 |olean", |"repeat |
|00002890| 69 6d 61 67 65 20 6c 6f | 6f 70 22 7d 2c 0a 20 20 |image lo|op"},. |
|000028a0| 20 20 20 2a 09 20 7b 22 | 69 6d 67 73 22 2c 20 20 | *. {"|imgs", |
|000028b0| 20 22 75 72 6c 22 2c 20 | 20 20 20 20 22 69 6d 61 | "url", | "ima|
|000028c0| 67 65 73 20 64 69 72 65 | 63 74 6f 72 79 22 7d 0a |ges dire|ctory"}.|
|000028d0| 20 20 20 20 20 2a 20 7d | 3b 0a 20 20 20 20 20 2a | * }|;. *|
|000028e0| 20 3c 2f 70 72 65 3e 3c | 2f 62 6c 6f 63 6b 71 75 | </pre><|/blockqu|
|000028f0| 6f 74 65 3e 0a 20 20 20 | 20 20 2a 20 3c 70 3e 0a |ote>. | * <p>.|
|00002900| 20 20 20 20 20 2a 20 54 | 68 65 20 69 6d 70 6c 65 | * T|he imple|
|00002910| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 74 68 69 |mentatio|n of thi|
|00002920| 73 20 6d 65 74 68 6f 64 | 20 70 72 6f 76 69 64 65 |s method| provide|
|00002930| 64 20 62 79 20 74 68 65 | 20 0a 20 20 20 20 20 2a |d by the| . *|
|00002940| 20 3c 63 6f 64 65 3e 41 | 70 70 6c 65 74 3c 2f 63 | <code>A|pplet</c|
|00002950| 6f 64 65 3e 20 63 6c 61 | 73 73 20 72 65 74 75 72 |ode> cla|ss retur|
|00002960| 6e 73 20 3c 63 6f 64 65 | 3e 6e 75 6c 6c 3c 2f 63 |ns <code|>null</c|
|00002970| 6f 64 65 3e 2e 20 0a 20 | 20 20 20 20 2a 0a 20 20 |ode>. . | *. |
|00002980| 20 20 20 2a 20 40 72 65 | 74 75 72 6e 20 20 61 6e | * @re|turn an|
|00002990| 20 61 72 72 61 79 20 64 | 65 73 63 72 69 62 69 6e | array d|escribin|
|000029a0| 67 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |g the pa|rameters|
|000029b0| 20 74 68 69 73 20 61 70 | 70 6c 65 74 20 6c 6f 6f | this ap|plet loo|
|000029c0| 6b 73 20 66 6f 72 2e 0a | 20 20 20 20 20 2a 2f 0a |ks for..| */.|
|000029d0| 20 20 20 20 70 75 62 6c | 69 63 20 53 74 72 69 6e | publ|ic Strin|
|000029e0| 67 5b 5d 5b 5d 20 67 65 | 74 50 61 72 61 6d 65 74 |g[][] ge|tParamet|
|000029f0| 65 72 49 6e 66 6f 28 29 | 20 7b 0a 09 72 65 74 75 |erInfo()| {..retu|
|00002a00| 72 6e 20 6e 75 6c 6c 3b | 0a 20 20 20 20 7d 0a 0a |rn null;|. }..|
|00002a10| 20 20 20 20 2f 2a 2a 0a | 20 20 20 20 20 2a 20 50 | /**.| * P|
|00002a20| 6c 61 79 73 20 74 68 65 | 20 61 75 64 69 6f 20 63 |lays the| audio c|
|00002a30| 6c 69 70 20 61 74 20 74 | 68 65 20 73 70 65 63 69 |lip at t|he speci|
|00002a40| 66 69 65 64 20 61 62 73 | 6f 6c 75 74 65 20 55 52 |fied abs|olute UR|
|00002a50| 4c 2e 20 4e 6f 74 68 69 | 6e 67 20 0a 20 20 20 20 |L. Nothi|ng . |
|00002a60| 20 2a 20 68 61 70 70 65 | 6e 73 20 69 66 20 74 68 | * happe|ns if th|
|00002a70| 65 20 61 75 64 69 6f 20 | 63 6c 69 70 20 63 61 6e |e audio |clip can|
|00002a80| 6e 6f 74 20 62 65 20 66 | 6f 75 6e 64 2e 20 0a 20 |not be f|ound. . |
|00002a90| 20 20 20 20 2a 0a 20 20 | 20 20 20 2a 20 40 70 61 | *. | * @pa|
|00002aa0| 72 61 6d 20 20 20 75 72 | 6c 20 20 20 61 6e 20 61 |ram ur|l an a|
|00002ab0| 62 73 6f 6c 75 74 65 20 | 55 52 4c 20 67 69 76 69 |bsolute |URL givi|
|00002ac0| 6e 67 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 20 |ng the l|ocation |
|00002ad0| 6f 66 20 74 68 65 20 61 | 75 64 69 6f 20 63 6c 69 |of the a|udio cli|
|00002ae0| 70 2e 0a 20 20 20 20 20 | 2a 2f 0a 20 20 20 20 70 |p.. |*/. p|
|00002af0| 75 62 6c 69 63 20 76 6f | 69 64 20 70 6c 61 79 28 |ublic vo|id play(|
|00002b00| 55 52 4c 20 75 72 6c 29 | 20 7b 0a 09 41 75 64 69 |URL url)| {..Audi|
|00002b10| 6f 43 6c 69 70 20 63 6c | 69 70 20 3d 20 67 65 74 |oClip cl|ip = get|
|00002b20| 41 75 64 69 6f 43 6c 69 | 70 28 75 72 6c 29 3b 0a |AudioCli|p(url);.|
|00002b30| 09 69 66 20 28 63 6c 69 | 70 20 21 3d 20 6e 75 6c |.if (cli|p != nul|
|00002b40| 6c 29 20 7b 0a 09 20 20 | 20 20 63 6c 69 70 2e 70 |l) {.. | clip.p|
|00002b50| 6c 61 79 28 29 3b 0a 09 | 7d 0a 20 20 20 20 7d 0a |lay();..|}. }.|
|00002b60| 0a 20 20 20 20 2f 2a 2a | 0a 20 20 20 20 20 2a 20 |. /**|. * |
|00002b70| 50 6c 61 79 73 20 74 68 | 65 20 61 75 64 69 6f 20 |Plays th|e audio |
|00002b80| 63 6c 69 70 20 67 69 76 | 65 6e 20 74 68 65 20 55 |clip giv|en the U|
|00002b90| 52 4c 20 61 6e 64 20 61 | 20 73 70 65 63 69 66 69 |RL and a| specifi|
|00002ba0| 65 72 20 74 68 61 74 20 | 69 73 20 0a 20 20 20 20 |er that |is . |
|00002bb0| 20 2a 20 72 65 6c 61 74 | 69 76 65 20 74 6f 20 69 | * relat|ive to i|
|00002bc0| 74 2e 20 4e 6f 74 68 69 | 6e 67 20 68 61 70 70 65 |t. Nothi|ng happe|
|00002bd0| 6e 73 20 69 66 20 74 68 | 65 20 61 75 64 69 6f 20 |ns if th|e audio |
|00002be0| 63 6c 69 70 20 63 61 6e | 6e 6f 74 20 62 65 20 66 |clip can|not be f|
|00002bf0| 6f 75 6e 64 2e 20 0a 20 | 20 20 20 20 2a 0a 20 20 |ound. . | *. |
|00002c00| 20 20 20 2a 20 40 70 61 | 72 61 6d 20 20 20 75 72 | * @pa|ram ur|
|00002c10| 6c 20 20 20 20 61 6e 20 | 61 62 73 6f 6c 75 74 65 |l an |absolute|
|00002c20| 20 55 52 4c 20 67 69 76 | 69 6e 67 20 74 68 65 20 | URL giv|ing the |
|00002c30| 62 61 73 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 |base loc|ation of|
|00002c40| 20 74 68 65 0a 20 20 20 | 20 20 2a 20 20 20 20 20 | the. | * |
|00002c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 75 64 69 | | audi|
|00002c60| 6f 20 63 6c 69 70 2e 0a | 20 20 20 20 20 2a 20 40 |o clip..| * @|
|00002c70| 70 61 72 61 6d 20 20 20 | 6e 61 6d 65 20 20 20 74 |param |name t|
|00002c80| 68 65 20 6c 6f 63 61 74 | 69 6f 6e 20 6f 66 20 74 |he locat|ion of t|
|00002c90| 68 65 20 61 75 64 69 6f | 20 63 6c 69 70 2c 20 72 |he audio| clip, r|
|00002ca0| 65 6c 61 74 69 76 65 20 | 74 6f 20 74 68 65 0a 20 |elative |to the. |
|00002cb0| 20 20 20 20 2a 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00002cc0| 20 20 20 20 20 20 3c 63 | 6f 64 65 3e 75 72 6c 3c | <c|ode>url<|
|00002cd0| 2f 63 6f 64 65 3e 20 61 | 72 67 75 6d 65 6e 74 2e |/code> a|rgument.|
|00002ce0| 0a 20 20 20 20 20 2a 2f | 0a 20 20 20 20 70 75 62 |. */|. pub|
|00002cf0| 6c 69 63 20 76 6f 69 64 | 20 70 6c 61 79 28 55 52 |lic void| play(UR|
|00002d00| 4c 20 75 72 6c 2c 20 53 | 74 72 69 6e 67 20 6e 61 |L url, S|tring na|
|00002d10| 6d 65 29 20 7b 0a 09 41 | 75 64 69 6f 43 6c 69 70 |me) {..A|udioClip|
|00002d20| 20 63 6c 69 70 20 3d 20 | 67 65 74 41 75 64 69 6f | clip = |getAudio|
|00002d30| 43 6c 69 70 28 75 72 6c | 2c 20 6e 61 6d 65 29 3b |Clip(url|, name);|
|00002d40| 0a 09 69 66 20 28 63 6c | 69 70 20 21 3d 20 6e 75 |..if (cl|ip != nu|
|00002d50| 6c 6c 29 20 7b 0a 09 20 | 20 20 20 63 6c 69 70 2e |ll) {.. | clip.|
|00002d60| 70 6c 61 79 28 29 3b 0a | 09 7d 0a 20 20 20 20 7d |play();.|.}. }|
|00002d70| 0a 0a 20 20 20 20 2f 2a | 2a 0a 20 20 20 20 20 2a |.. /*|*. *|
|00002d80| 20 43 61 6c 6c 65 64 20 | 62 79 20 74 68 65 20 62 | Called |by the b|
|00002d90| 72 6f 77 73 65 72 20 6f | 72 20 61 70 70 6c 65 74 |rowser o|r applet|
|00002da0| 20 76 69 65 77 65 72 20 | 74 6f 20 69 6e 66 6f 72 | viewer |to infor|
|00002db0| 6d 20 0a 20 20 20 20 20 | 2a 20 74 68 69 73 20 61 |m . |* this a|
|00002dc0| 70 70 6c 65 74 20 74 68 | 61 74 20 69 74 20 68 61 |pplet th|at it ha|
|00002dd0| 73 20 62 65 65 6e 20 6c | 6f 61 64 65 64 20 69 6e |s been l|oaded in|
|00002de0| 74 6f 20 74 68 65 20 73 | 79 73 74 65 6d 2e 20 49 |to the s|ystem. I|
|00002df0| 74 20 69 73 20 61 6c 77 | 61 79 73 20 0a 20 20 20 |t is alw|ays . |
|00002e00| 20 20 2a 20 63 61 6c 6c | 65 64 20 62 65 66 6f 72 | * call|ed befor|
|00002e10| 65 20 74 68 65 20 66 69 | 72 73 74 20 74 69 6d 65 |e the fi|rst time|
|00002e20| 20 74 68 61 74 20 74 68 | 65 20 3c 63 6f 64 65 3e | that th|e <code>|
|00002e30| 73 74 61 72 74 3c 2f 63 | 6f 64 65 3e 20 6d 65 74 |start</c|ode> met|
|00002e40| 68 6f 64 20 69 73 20 0a | 20 20 20 20 20 2a 20 63 |hod is .| * c|
|00002e50| 61 6c 6c 65 64 2e 20 0a | 20 20 20 20 20 2a 20 3c |alled. .| * <|
|00002e60| 70 3e 0a 20 20 20 20 20 | 2a 20 41 20 73 75 62 63 |p>. |* A subc|
|00002e70| 6c 61 73 73 20 6f 66 20 | 3c 63 6f 64 65 3e 41 70 |lass of |<code>Ap|
|00002e80| 70 6c 65 74 3c 2f 63 6f | 64 65 3e 20 73 68 6f 75 |plet</co|de> shou|
|00002e90| 6c 64 20 6f 76 65 72 72 | 69 64 65 20 74 68 69 73 |ld overr|ide this|
|00002ea0| 20 6d 65 74 68 6f 64 20 | 69 66 20 0a 20 20 20 20 | method |if . |
|00002eb0| 20 2a 20 69 74 20 68 61 | 73 20 69 6e 69 74 69 61 | * it ha|s initia|
|00002ec0| 6c 69 7a 61 74 69 6f 6e | 20 74 6f 20 70 65 72 66 |lization| to perf|
|00002ed0| 6f 72 6d 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |orm. For| example|
|00002ee0| 2c 20 61 6e 20 61 70 70 | 6c 65 74 20 77 69 74 68 |, an app|let with|
|00002ef0| 20 0a 20 20 20 20 20 2a | 20 74 68 72 65 61 64 73 | . *| threads|
|00002f00| 20 77 6f 75 6c 64 20 75 | 73 65 20 74 68 65 20 3c | would u|se the <|
|00002f10| 63 6f 64 65 3e 69 6e 69 | 74 3c 2f 63 6f 64 65 3e |code>ini|t</code>|
|00002f20| 20 6d 65 74 68 6f 64 20 | 74 6f 20 63 72 65 61 74 | method |to creat|
|00002f30| 65 20 74 68 65 20 0a 20 | 20 20 20 20 2a 20 74 68 |e the . | * th|
|00002f40| 72 65 61 64 73 20 61 6e | 64 20 74 68 65 20 3c 63 |reads an|d the <c|
|00002f50| 6f 64 65 3e 64 65 73 74 | 72 6f 79 3c 2f 63 6f 64 |ode>dest|roy</cod|
|00002f60| 65 3e 20 6d 65 74 68 6f | 64 20 74 6f 20 6b 69 6c |e> metho|d to kil|
|00002f70| 6c 20 74 68 65 6d 2e 20 | 0a 20 20 20 20 20 2a 20 |l them. |. * |
|00002f80| 3c 70 3e 0a 20 20 20 20 | 20 2a 20 54 68 65 20 69 |<p>. | * The i|
|00002f90| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00002fa0| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 20 70 72 6f | this me|thod pro|
|00002fb0| 76 69 64 65 64 20 62 79 | 20 74 68 65 20 0a 20 20 |vided by| the . |
|00002fc0| 20 20 20 2a 20 3c 63 6f | 64 65 3e 41 70 70 6c 65 | * <co|de>Apple|
|00002fd0| 74 3c 2f 63 6f 64 65 3e | 20 63 6c 61 73 73 20 64 |t</code>| class d|
|00002fe0| 6f 65 73 20 6e 6f 74 68 | 69 6e 67 2e 20 0a 20 20 |oes noth|ing. . |
|00002ff0| 20 20 20 2a 0a 20 20 20 | 20 20 2a 20 40 73 65 65 | *. | * @see|
|00003000| 20 20 20 20 20 6a 61 76 | 61 2e 61 70 70 6c 65 74 | jav|a.applet|
|00003010| 2e 41 70 70 6c 65 74 23 | 64 65 73 74 72 6f 79 28 |.Applet#|destroy(|
|00003020| 29 0a 20 20 20 20 20 2a | 20 40 73 65 65 20 20 20 |). *| @see |
|00003030| 20 20 6a 61 76 61 2e 61 | 70 70 6c 65 74 2e 41 70 | java.a|pplet.Ap|
|00003040| 70 6c 65 74 23 73 74 61 | 72 74 28 29 0a 20 20 20 |plet#sta|rt(). |
|00003050| 20 20 2a 20 40 73 65 65 | 20 20 20 20 20 6a 61 76 | * @see| jav|
|00003060| 61 2e 61 70 70 6c 65 74 | 2e 41 70 70 6c 65 74 23 |a.applet|.Applet#|
|00003070| 73 74 6f 70 28 29 0a 20 | 20 20 20 20 2a 2f 0a 20 |stop(). | */. |
|00003080| 20 20 20 70 75 62 6c 69 | 63 20 76 6f 69 64 20 69 | publi|c void i|
|00003090| 6e 69 74 28 29 20 7b 0a | 20 20 20 20 7d 0a 0a 20 |nit() {.| }.. |
|000030a0| 20 20 20 2f 2a 2a 0a 20 | 20 20 20 20 2a 20 43 61 | /**. | * Ca|
|000030b0| 6c 6c 65 64 20 62 79 20 | 74 68 65 20 62 72 6f 77 |lled by |the brow|
|000030c0| 73 65 72 20 6f 72 20 61 | 70 70 6c 65 74 20 76 69 |ser or a|pplet vi|
|000030d0| 65 77 65 72 20 74 6f 20 | 69 6e 66 6f 72 6d 20 0a |ewer to |inform .|
|000030e0| 20 20 20 20 20 2a 20 74 | 68 69 73 20 61 70 70 6c | * t|his appl|
|000030f0| 65 74 20 74 68 61 74 20 | 69 74 20 73 68 6f 75 6c |et that |it shoul|
|00003100| 64 20 73 74 61 72 74 20 | 69 74 73 20 65 78 65 63 |d start |its exec|
|00003110| 75 74 69 6f 6e 2e 20 49 | 74 20 69 73 20 63 61 6c |ution. I|t is cal|
|00003120| 6c 65 64 20 61 66 74 65 | 72 20 0a 20 20 20 20 20 |led afte|r . |
|00003130| 2a 20 74 68 65 20 3c 63 | 6f 64 65 3e 69 6e 69 74 |* the <c|ode>init|
|00003140| 3c 2f 63 6f 64 65 3e 20 | 6d 65 74 68 6f 64 20 61 |</code> |method a|
|00003150| 6e 64 20 65 61 63 68 20 | 74 69 6d 65 20 74 68 65 |nd each |time the|
|00003160| 20 61 70 70 6c 65 74 20 | 69 73 20 72 65 76 69 73 | applet |is revis|
|00003170| 69 74 65 64 20 0a 20 20 | 20 20 20 2a 20 69 6e 20 |ited . | * in |
|00003180| 61 20 57 65 62 20 70 61 | 67 65 2e 20 0a 20 20 20 |a Web pa|ge. . |
|00003190| 20 20 2a 20 3c 70 3e 0a | 20 20 20 20 20 2a 20 41 | * <p>.| * A|
|000031a0| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 3c 63 6f | subclas|s of <co|
|000031b0| 64 65 3e 41 70 70 6c 65 | 74 3c 2f 63 6f 64 65 3e |de>Apple|t</code>|
|000031c0| 20 73 68 6f 75 6c 64 20 | 6f 76 65 72 72 69 64 65 | should |override|
|000031d0| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 20 69 66 20 | this me|thod if |
|000031e0| 0a 20 20 20 20 20 2a 20 | 69 74 20 68 61 73 20 61 |. * |it has a|
|000031f0| 6e 79 20 6f 70 65 72 61 | 74 69 6f 6e 20 74 68 61 |ny opera|tion tha|
|00003200| 74 20 69 74 20 77 61 6e | 74 73 20 74 6f 20 70 65 |t it wan|ts to pe|
|00003210| 72 66 6f 72 6d 20 65 61 | 63 68 20 74 69 6d 65 20 |rform ea|ch time |
|00003220| 74 68 65 20 57 65 62 20 | 0a 20 20 20 20 20 2a 20 |the Web |. * |
|00003230| 70 61 67 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |page con|taining |
|00003240| 69 74 20 69 73 20 76 69 | 73 69 74 65 64 2e 20 46 |it is vi|sited. F|
|00003250| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 61 6e 20 61 |or examp|le, an a|
|00003260| 70 70 6c 65 74 20 77 69 | 74 68 20 0a 20 20 20 20 |pplet wi|th . |
|00003270| 20 2a 20 61 6e 69 6d 61 | 74 69 6f 6e 20 6d 69 67 | * anima|tion mig|
|00003280| 68 74 20 77 61 6e 74 20 | 74 6f 20 75 73 65 20 74 |ht want |to use t|
|00003290| 68 65 20 3c 63 6f 64 65 | 3e 73 74 61 72 74 3c 2f |he <code|>start</|
|000032a0| 63 6f 64 65 3e 20 6d 65 | 74 68 6f 64 20 74 6f 20 |code> me|thod to |
|000032b0| 0a 20 20 20 20 20 2a 20 | 72 65 73 75 6d 65 20 61 |. * |resume a|
|000032c0| 6e 69 6d 61 74 69 6f 6e | 2c 20 61 6e 64 20 74 68 |nimation|, and th|
|000032d0| 65 20 3c 63 6f 64 65 3e | 73 74 6f 70 3c 2f 63 6f |e <code>|stop</co|
|000032e0| 64 65 3e 20 6d 65 74 68 | 6f 64 20 74 6f 20 73 75 |de> meth|od to su|
|000032f0| 73 70 65 6e 64 20 74 68 | 65 20 0a 20 20 20 20 20 |spend th|e . |
|00003300| 2a 20 61 6e 69 6d 61 74 | 69 6f 6e 2e 20 0a 20 20 |* animat|ion. . |
|00003310| 20 20 20 2a 20 3c 70 3e | 0a 20 20 20 20 20 2a 20 | * <p>|. * |
|00003320| 54 68 65 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |The impl|ementati|
|00003330| 6f 6e 20 6f 66 20 74 68 | 69 73 20 6d 65 74 68 6f |on of th|is metho|
|00003340| 64 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |d provid|ed by th|
|00003350| 65 20 0a 20 20 20 20 20 | 2a 20 3c 63 6f 64 65 3e |e . |* <code>|
|00003360| 41 70 70 6c 65 74 3c 2f | 63 6f 64 65 3e 20 63 6c |Applet</|code> cl|
|00003370| 61 73 73 20 64 6f 65 73 | 20 6e 6f 74 68 69 6e 67 |ass does| nothing|
|00003380| 2e 20 0a 20 20 20 20 20 | 2a 0a 20 20 20 20 20 2a |. . |*. *|
|00003390| 20 40 73 65 65 20 20 20 | 20 20 6a 61 76 61 2e 61 | @see | java.a|
|000033a0| 70 70 6c 65 74 2e 41 70 | 70 6c 65 74 23 64 65 73 |pplet.Ap|plet#des|
|000033b0| 74 72 6f 79 28 29 0a 20 | 20 20 20 20 2a 20 40 73 |troy(). | * @s|
|000033c0| 65 65 20 20 20 20 20 6a | 61 76 61 2e 61 70 70 6c |ee j|ava.appl|
|000033d0| 65 74 2e 41 70 70 6c 65 | 74 23 69 6e 69 74 28 29 |et.Apple|t#init()|
|000033e0| 0a 20 20 20 20 20 2a 20 | 40 73 65 65 20 20 20 20 |. * |@see |
|000033f0| 20 6a 61 76 61 2e 61 70 | 70 6c 65 74 2e 41 70 70 | java.ap|plet.App|
|00003400| 6c 65 74 23 73 74 6f 70 | 28 29 0a 20 20 20 20 20 |let#stop|(). |
|00003410| 2a 2f 0a 20 20 20 20 70 | 75 62 6c 69 63 20 76 6f |*/. p|ublic vo|
|00003420| 69 64 20 73 74 61 72 74 | 28 29 20 7b 0a 20 20 20 |id start|() {. |
|00003430| 20 7d 0a 0a 20 20 20 20 | 2f 2a 2a 0a 20 20 20 20 | }.. |/**. |
|00003440| 20 2a 20 43 61 6c 6c 65 | 64 20 62 79 20 74 68 65 | * Calle|d by the|
|00003450| 20 62 72 6f 77 73 65 72 | 20 6f 72 20 61 70 70 6c | browser| or appl|
|00003460| 65 74 20 76 69 65 77 65 | 72 20 74 6f 20 69 6e 66 |et viewe|r to inf|
|00003470| 6f 72 6d 20 0a 20 20 20 | 20 20 2a 20 74 68 69 73 |orm . | * this|
|00003480| 20 61 70 70 6c 65 74 20 | 74 68 61 74 20 69 74 20 | applet |that it |
|00003490| 73 68 6f 75 6c 64 20 73 | 74 6f 70 20 69 74 73 20 |should s|top its |
|000034a0| 65 78 65 63 75 74 69 6f | 6e 2e 20 49 74 20 69 73 |executio|n. It is|
|000034b0| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 20 0a 20 20 | called |when . |
|000034c0| 20 20 20 2a 20 74 68 65 | 20 57 65 62 20 70 61 67 | * the| Web pag|
|000034d0| 65 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 73 20 |e that c|ontains |
|000034e0| 74 68 69 73 20 61 70 70 | 6c 65 74 20 68 61 73 20 |this app|let has |
|000034f0| 62 65 65 6e 20 72 65 70 | 6c 61 63 65 64 20 62 79 |been rep|laced by|
|00003500| 20 0a 20 20 20 20 20 2a | 20 61 6e 6f 74 68 65 72 | . *| another|
|00003510| 20 70 61 67 65 2c 20 61 | 6e 64 20 61 6c 73 6f 20 | page, a|nd also |
|00003520| 6a 75 73 74 20 62 65 66 | 6f 72 65 20 74 68 65 20 |just bef|ore the |
|00003530| 61 70 70 6c 65 74 20 69 | 73 20 74 6f 20 62 65 20 |applet i|s to be |
|00003540| 64 65 73 74 72 6f 79 65 | 64 2e 20 0a 20 20 20 20 |destroye|d. . |
|00003550| 20 2a 20 3c 70 3e 0a 20 | 20 20 20 20 2a 20 41 20 | * <p>. | * A |
|00003560| 73 75 62 63 6c 61 73 73 | 20 6f 66 20 3c 63 6f 64 |subclass| of <cod|
|00003570| 65 3e 41 70 70 6c 65 74 | 3c 2f 63 6f 64 65 3e 20 |e>Applet|</code> |
|00003580| 73 68 6f 75 6c 64 20 6f | 76 65 72 72 69 64 65 20 |should o|verride |
|00003590| 74 68 69 73 20 6d 65 74 | 68 6f 64 20 69 66 20 0a |this met|hod if .|
|000035a0| 20 20 20 20 20 2a 20 69 | 74 20 68 61 73 20 61 6e | * i|t has an|
|000035b0| 79 20 6f 70 65 72 61 74 | 69 6f 6e 20 74 68 61 74 |y operat|ion that|
|000035c0| 20 69 74 20 77 61 6e 74 | 73 20 74 6f 20 70 65 72 | it want|s to per|
|000035d0| 66 6f 72 6d 20 65 61 63 | 68 20 74 69 6d 65 20 74 |form eac|h time t|
|000035e0| 68 65 20 57 65 62 20 0a | 20 20 20 20 20 2a 20 70 |he Web .| * p|
|000035f0| 61 67 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 69 |age cont|aining i|
|00003600| 74 20 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 76 |t is no |longer v|
|00003610| 69 73 69 62 6c 65 2e 20 | 46 6f 72 20 65 78 61 6d |isible. |For exam|
|00003620| 70 6c 65 2c 20 61 6e 20 | 61 70 70 6c 65 74 20 0a |ple, an |applet .|
|00003630| 20 20 20 20 20 2a 20 77 | 69 74 68 20 61 6e 69 6d | * w|ith anim|
|00003640| 61 74 69 6f 6e 20 6d 69 | 67 68 74 20 77 61 6e 74 |ation mi|ght want|
|00003650| 20 74 6f 20 75 73 65 20 | 74 68 65 20 3c 63 6f 64 | to use |the <cod|
|00003660| 65 3e 73 74 61 72 74 3c | 2f 63 6f 64 65 3e 20 6d |e>start<|/code> m|
|00003670| 65 74 68 6f 64 20 74 6f | 20 0a 20 20 20 20 20 2a |ethod to| . *|
|00003680| 20 72 65 73 75 6d 65 20 | 61 6e 69 6d 61 74 69 6f | resume |animatio|
|00003690| 6e 2c 20 61 6e 64 20 74 | 68 65 20 3c 63 6f 64 65 |n, and t|he <code|
|000036a0| 3e 73 74 6f 70 3c 2f 63 | 6f 64 65 3e 20 6d 65 74 |>stop</c|ode> met|
|000036b0| 68 6f 64 20 74 6f 20 73 | 75 73 70 65 6e 64 20 74 |hod to s|uspend t|
|000036c0| 68 65 20 0a 20 20 20 20 | 20 2a 20 61 6e 69 6d 61 |he . | * anima|
|000036d0| 74 69 6f 6e 2e 20 0a 20 | 20 20 20 20 2a 20 3c 70 |tion. . | * <p|
|000036e0| 3e 0a 20 20 20 20 20 2a | 20 54 68 65 20 69 6d 70 |>. *| The imp|
|000036f0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 74 |lementat|ion of t|
|00003700| 68 69 73 20 6d 65 74 68 | 6f 64 20 70 72 6f 76 69 |his meth|od provi|
|00003710| 64 65 64 20 62 79 20 74 | 68 65 20 0a 20 20 20 20 |ded by t|he . |
|00003720| 20 2a 20 3c 63 6f 64 65 | 3e 41 70 70 6c 65 74 3c | * <code|>Applet<|
|00003730| 2f 63 6f 64 65 3e 20 63 | 6c 61 73 73 20 64 6f 65 |/code> c|lass doe|
|00003740| 73 20 6e 6f 74 68 69 6e | 67 2e 20 0a 20 20 20 20 |s nothin|g. . |
|00003750| 20 2a 0a 20 20 20 20 20 | 2a 20 40 73 65 65 20 20 | *. |* @see |
|00003760| 20 20 20 6a 61 76 61 2e | 61 70 70 6c 65 74 2e 41 | java.|applet.A|
|00003770| 70 70 6c 65 74 23 64 65 | 73 74 72 6f 79 28 29 0a |pplet#de|stroy().|
|00003780| 20 20 20 20 20 2a 20 40 | 73 65 65 20 20 20 20 20 | * @|see |
|00003790| 6a 61 76 61 2e 61 70 70 | 6c 65 74 2e 41 70 70 6c |java.app|let.Appl|
|000037a0| 65 74 23 69 6e 69 74 28 | 29 0a 20 20 20 20 20 2a |et#init(|). *|
|000037b0| 2f 0a 20 20 20 20 70 75 | 62 6c 69 63 20 76 6f 69 |/. pu|blic voi|
|000037c0| 64 20 73 74 6f 70 28 29 | 20 7b 0a 20 20 20 20 7d |d stop()| {. }|
|000037d0| 0a 0a 20 20 20 20 2f 2a | 2a 0a 20 20 20 20 20 2a |.. /*|*. *|
|000037e0| 20 43 61 6c 6c 65 64 20 | 62 79 20 74 68 65 20 62 | Called |by the b|
|000037f0| 72 6f 77 73 65 72 20 6f | 72 20 61 70 70 6c 65 74 |rowser o|r applet|
|00003800| 20 76 69 65 77 65 72 20 | 74 6f 20 69 6e 66 6f 72 | viewer |to infor|
|00003810| 6d 20 0a 20 20 20 20 20 | 2a 20 74 68 69 73 20 61 |m . |* this a|
|00003820| 70 70 6c 65 74 20 74 68 | 61 74 20 69 74 20 69 73 |pplet th|at it is|
|00003830| 20 62 65 69 6e 67 20 72 | 65 63 6c 61 69 6d 65 64 | being r|eclaimed|
|00003840| 20 61 6e 64 20 74 68 61 | 74 20 69 74 20 73 68 6f | and tha|t it sho|
|00003850| 75 6c 64 20 64 65 73 74 | 72 6f 79 20 0a 20 20 20 |uld dest|roy . |
|00003860| 20 20 2a 20 61 6e 79 20 | 72 65 73 6f 75 72 63 65 | * any |resource|
|00003870| 73 20 74 68 61 74 20 69 | 74 20 68 61 73 20 61 6c |s that i|t has al|
|00003880| 6c 6f 63 61 74 65 64 2e | 20 54 68 65 20 3c 63 6f |located.| The <co|
|00003890| 64 65 3e 73 74 6f 70 3c | 2f 63 6f 64 65 3e 20 6d |de>stop<|/code> m|
|000038a0| 65 74 68 6f 64 20 0a 20 | 20 20 20 20 2a 20 77 69 |ethod . | * wi|
|000038b0| 6c 6c 20 61 6c 77 61 79 | 73 20 62 65 20 63 61 6c |ll alway|s be cal|
|000038c0| 6c 65 64 20 62 65 66 6f | 72 65 20 3c 63 6f 64 65 |led befo|re <code|
|000038d0| 3e 64 65 73 74 72 6f 79 | 3c 2f 63 6f 64 65 3e 2e |>destroy|</code>.|
|000038e0| 20 0a 20 20 20 20 20 2a | 20 3c 70 3e 0a 20 20 20 | . *| <p>. |
|000038f0| 20 20 2a 20 41 20 73 75 | 62 63 6c 61 73 73 20 6f | * A su|bclass o|
|00003900| 66 20 3c 63 6f 64 65 3e | 41 70 70 6c 65 74 3c 2f |f <code>|Applet</|
|00003910| 63 6f 64 65 3e 20 73 68 | 6f 75 6c 64 20 6f 76 65 |code> sh|ould ove|
|00003920| 72 72 69 64 65 20 74 68 | 69 73 20 6d 65 74 68 6f |rride th|is metho|
|00003930| 64 20 69 66 20 0a 20 20 | 20 20 20 2a 20 69 74 20 |d if . | * it |
|00003940| 68 61 73 20 61 6e 79 20 | 6f 70 65 72 61 74 69 6f |has any |operatio|
|00003950| 6e 20 74 68 61 74 20 69 | 74 20 77 61 6e 74 73 20 |n that i|t wants |
|00003960| 74 6f 20 70 65 72 66 6f | 72 6d 20 62 65 66 6f 72 |to perfo|rm befor|
|00003970| 65 20 69 74 20 69 73 20 | 0a 20 20 20 20 20 2a 20 |e it is |. * |
|00003980| 64 65 73 74 72 6f 79 65 | 64 2e 20 46 6f 72 20 65 |destroye|d. For e|
|00003990| 78 61 6d 70 6c 65 2c 20 | 61 6e 20 61 70 70 6c 65 |xample, |an apple|
|000039a0| 74 20 77 69 74 68 20 74 | 68 72 65 61 64 73 20 77 |t with t|hreads w|
|000039b0| 6f 75 6c 64 20 75 73 65 | 20 74 68 65 20 0a 20 20 |ould use| the . |
|000039c0| 20 20 20 2a 20 3c 63 6f | 64 65 3e 69 6e 69 74 3c | * <co|de>init<|
|000039d0| 2f 63 6f 64 65 3e 20 6d | 65 74 68 6f 64 20 74 6f |/code> m|ethod to|
|000039e0| 20 63 72 65 61 74 65 20 | 74 68 65 20 74 68 72 65 | create |the thre|
|000039f0| 61 64 73 20 61 6e 64 20 | 74 68 65 20 0a 20 20 20 |ads and |the . |
|00003a00| 20 20 2a 20 3c 63 6f 64 | 65 3e 64 65 73 74 72 6f | * <cod|e>destro|
|00003a10| 79 3c 2f 63 6f 64 65 3e | 20 6d 65 74 68 6f 64 20 |y</code>| method |
|00003a20| 74 6f 20 6b 69 6c 6c 20 | 74 68 65 6d 2e 20 0a 20 |to kill |them. . |
|00003a30| 20 20 20 20 2a 20 3c 70 | 3e 0a 20 20 20 20 20 2a | * <p|>. *|
|00003a40| 20 54 68 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 | The imp|lementat|
|00003a50| 69 6f 6e 20 6f 66 20 74 | 68 69 73 20 6d 65 74 68 |ion of t|his meth|
|00003a60| 6f 64 20 70 72 6f 76 69 | 64 65 64 20 62 79 20 74 |od provi|ded by t|
|00003a70| 68 65 20 0a 20 20 20 20 | 20 2a 20 3c 63 6f 64 65 |he . | * <code|
|00003a80| 3e 41 70 70 6c 65 74 3c | 2f 63 6f 64 65 3e 20 63 |>Applet<|/code> c|
|00003a90| 6c 61 73 73 20 64 6f 65 | 73 20 6e 6f 74 68 69 6e |lass doe|s nothin|
|00003aa0| 67 2e 20 0a 20 20 20 20 | 20 2a 0a 20 20 20 20 20 |g. . | *. |
|00003ab0| 2a 20 40 73 65 65 20 20 | 20 20 20 6a 61 76 61 2e |* @see | java.|
|00003ac0| 61 70 70 6c 65 74 2e 41 | 70 70 6c 65 74 23 69 6e |applet.A|pplet#in|
|00003ad0| 69 74 28 29 0a 20 20 20 | 20 20 2a 20 40 73 65 65 |it(). | * @see|
|00003ae0| 20 20 20 20 20 6a 61 76 | 61 2e 61 70 70 6c 65 74 | jav|a.applet|
|00003af0| 2e 41 70 70 6c 65 74 23 | 73 74 61 72 74 28 29 0a |.Applet#|start().|
|00003b00| 20 20 20 20 20 2a 20 40 | 73 65 65 20 20 20 20 20 | * @|see |
|00003b10| 6a 61 76 61 2e 61 70 70 | 6c 65 74 2e 41 70 70 6c |java.app|let.Appl|
|00003b20| 65 74 23 73 74 6f 70 28 | 29 0a 20 20 20 20 20 2a |et#stop(|). *|
|00003b30| 2f 0a 20 20 20 20 70 75 | 62 6c 69 63 20 76 6f 69 |/. pu|blic voi|
|00003b40| 64 20 64 65 73 74 72 6f | 79 28 29 20 7b 0a 20 20 |d destro|y() {. |
|00003b50| 20 20 7d 0a 7d 0a 50 4b | 03 04 0a 00 00 00 00 00 | }.}.PK|........|
|00003b60| 0c 5a 74 24 95 88 89 90 | 44 14 00 00 44 14 00 00 |.Zt$....|D...D...|
|00003b70| 1e 00 00 00 6a 61 76 61 | 2f 61 70 70 6c 65 74 2f |....java|/applet/|
|00003b80| 41 70 70 6c 65 74 43 6f | 6e 74 65 78 74 2e 6a 61 |AppletCo|ntext.ja|
|00003b90| 76 61 2f 2a 0a 20 2a 20 | 40 28 23 29 41 70 70 6c |va/*. * |@(#)Appl|
|00003ba0| 65 74 43 6f 6e 74 65 78 | 74 2e 6a 61 76 61 09 31 |etContex|t.java.1|
|00003bb0| 2e 32 32 20 39 38 2f 30 | 33 2f 31 38 0a 20 2a 0a |.22 98/0|3/18. *.|
|00003bc0| 20 2a 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 | * Copyr|ight 199|
|00003bd0| 35 2d 31 39 39 38 20 62 | 79 20 53 75 6e 20 4d 69 |5-1998 b|y Sun Mi|
|00003be0| 63 72 6f 73 79 73 74 65 | 6d 73 2c 20 49 6e 63 2e |crosyste|ms, Inc.|
|00003bf0| 2c 0a 20 2a 20 39 30 31 | 20 53 61 6e 20 41 6e 74 |,. * 901| San Ant|
|00003c00| 6f 6e 69 6f 20 52 6f 61 | 64 2c 20 50 61 6c 6f 20 |onio Roa|d, Palo |
|00003c10| 41 6c 74 6f 2c 20 43 61 | 6c 69 66 6f 72 6e 69 61 |Alto, Ca|lifornia|
|00003c20| 2c 20 39 34 33 30 33 2c | 20 55 2e 53 2e 41 2e 0a |, 94303,| U.S.A..|
|00003c30| 20 2a 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 | * All r|ights re|
|00003c40| 73 65 72 76 65 64 2e 0a | 20 2a 0a 20 2a 20 54 68 |served..| *. * Th|
|00003c50| 69 73 20 73 6f 66 74 77 | 61 72 65 20 69 73 20 74 |is softw|are is t|
|00003c60| 68 65 20 63 6f 6e 66 69 | 64 65 6e 74 69 61 6c 20 |he confi|dential |
|00003c70| 61 6e 64 20 70 72 6f 70 | 72 69 65 74 61 72 79 20 |and prop|rietary |
|00003c80| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 20 2a 20 6f |informat|ion. * o|
|00003c90| 66 20 53 75 6e 20 4d 69 | 63 72 6f 73 79 73 74 65 |f Sun Mi|crosyste|
|00003ca0| 6d 73 2c 20 49 6e 63 2e | 20 28 22 43 6f 6e 66 69 |ms, Inc.| ("Confi|
|00003cb0| 64 65 6e 74 69 61 6c 20 | 49 6e 66 6f 72 6d 61 74 |dential |Informat|
|00003cc0| 69 6f 6e 22 29 2e 20 20 | 59 6f 75 0a 20 2a 20 73 |ion"). |You. * s|
|00003cd0| 68 61 6c 6c 20 6e 6f 74 | 20 64 69 73 63 6c 6f 73 |hall not| disclos|
|00003ce0| 65 20 73 75 63 68 20 43 | 6f 6e 66 69 64 65 6e 74 |e such C|onfident|
|00003cf0| 69 61 6c 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ial Info|rmation |
|00003d00| 61 6e 64 20 73 68 61 6c | 6c 20 75 73 65 0a 20 2a |and shal|l use. *|
|00003d10| 20 69 74 20 6f 6e 6c 79 | 20 69 6e 20 61 63 63 6f | it only| in acco|
|00003d20| 72 64 61 6e 63 65 20 77 | 69 74 68 20 74 68 65 20 |rdance w|ith the |
|00003d30| 74 65 72 6d 73 20 6f 66 | 20 74 68 65 20 6c 69 63 |terms of| the lic|
|00003d40| 65 6e 73 65 20 61 67 72 | 65 65 6d 65 6e 74 0a 20 |ense agr|eement. |
|00003d50| 2a 20 79 6f 75 20 65 6e | 74 65 72 65 64 20 69 6e |* you en|tered in|
|00003d60| 74 6f 20 77 69 74 68 20 | 53 75 6e 2e 0a 20 2a 2f |to with |Sun.. */|
|00003d70| 0a 0a 70 61 63 6b 61 67 | 65 20 6a 61 76 61 2e 61 |..packag|e java.a|
|00003d80| 70 70 6c 65 74 3b 0a 0a | 69 6d 70 6f 72 74 20 6a |pplet;..|import j|
|00003d90| 61 76 61 2e 61 77 74 2e | 49 6d 61 67 65 3b 0a 69 |ava.awt.|Image;.i|
|00003da0| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 61 77 74 2e 47 |mport ja|va.awt.G|
|00003db0| 72 61 70 68 69 63 73 3b | 0a 69 6d 70 6f 72 74 20 |raphics;|.import |
|00003dc0| 6a 61 76 61 2e 61 77 74 | 2e 69 6d 61 67 65 2e 43 |java.awt|.image.C|
|00003dd0| 6f 6c 6f 72 4d 6f 64 65 | 6c 3b 0a 69 6d 70 6f 72 |olorMode|l;.impor|
|00003de0| 74 20 6a 61 76 61 2e 6e | 65 74 2e 55 52 4c 3b 0a |t java.n|et.URL;.|
|00003df0| 69 6d 70 6f 72 74 20 6a | 61 76 61 2e 75 74 69 6c |import j|ava.util|
|00003e00| 2e 45 6e 75 6d 65 72 61 | 74 69 6f 6e 3b 0a 0a 2f |.Enumera|tion;../|
|00003e10| 2a 2a 0a 20 2a 20 54 68 | 69 73 20 69 6e 74 65 72 |**. * Th|is inter|
|00003e20| 66 61 63 65 20 63 6f 72 | 72 65 73 70 6f 6e 64 73 |face cor|responds|
|00003e30| 20 74 6f 20 61 6e 20 61 | 70 70 6c 65 74 27 73 20 | to an a|pplet's |
|00003e40| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 3a 20 74 68 65 |environm|ent: the|
|00003e50| 20 0a 20 2a 20 64 6f 63 | 75 6d 65 6e 74 20 63 6f | . * doc|ument co|
|00003e60| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 61 70 70 |ntaining| the app|
|00003e70| 6c 65 74 20 61 6e 64 20 | 74 68 65 20 6f 74 68 65 |let and |the othe|
|00003e80| 72 20 61 70 70 6c 65 74 | 73 20 69 6e 20 74 68 65 |r applet|s in the|
|00003e90| 20 73 61 6d 65 20 0a 20 | 2a 20 64 6f 63 75 6d 65 | same . |* docume|
|00003ea0| 6e 74 2e 20 0a 20 2a 20 | 3c 70 3e 0a 20 2a 20 54 |nt. . * |<p>. * T|
|00003eb0| 68 65 20 6d 65 74 68 6f | 64 73 20 69 6e 20 74 68 |he metho|ds in th|
|00003ec0| 69 73 20 69 6e 74 65 72 | 66 61 63 65 20 63 61 6e |is inter|face can|
|00003ed0| 20 62 65 20 75 73 65 64 | 20 62 79 20 61 6e 20 61 | be used| by an a|
|00003ee0| 70 70 6c 65 74 20 74 6f | 20 6f 62 74 61 69 6e 20 |pplet to| obtain |
|00003ef0| 0a 20 2a 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |. * info|rmation |
|00003f00| 61 62 6f 75 74 20 69 74 | 73 20 65 6e 76 69 72 6f |about it|s enviro|
|00003f10| 6e 6d 65 6e 74 2e 20 0a | 20 2a 0a 20 2a 20 40 61 |nment. .| *. * @a|
|00003f20| 75 74 68 6f 72 20 09 41 | 72 74 68 75 72 20 76 61 |uthor .A|rthur va|
|00003f30| 6e 20 48 6f 66 66 0a 20 | 2a 20 40 76 65 72 73 69 |n Hoff. |* @versi|
|00003f40| 6f 6e 20 20 20 20 20 31 | 2e 32 32 2c 20 30 33 2f |on 1|.22, 03/|
|00003f50| 31 38 2f 39 38 0a 20 2a | 20 40 73 69 6e 63 65 20 |18/98. *| @since |
|00003f60| 20 20 20 20 20 20 4a 44 | 4b 31 2e 30 0a 20 2a 2f | JD|K1.0. */|
|00003f70| 0a 70 75 62 6c 69 63 20 | 69 6e 74 65 72 66 61 63 |.public |interfac|
|00003f80| 65 20 41 70 70 6c 65 74 | 43 6f 6e 74 65 78 74 20 |e Applet|Context |
|00003f90| 7b 0a 20 20 20 20 2f 2a | 2a 0a 20 20 20 20 20 2a |{. /*|*. *|
|00003fa0| 20 43 72 65 61 74 65 73 | 20 61 6e 20 61 75 64 69 | Creates| an audi|
|00003fb0| 6f 20 63 6c 69 70 2e 20 | 0a 20 20 20 20 20 2a 0a |o clip. |. *.|
|00003fc0| 20 20 20 20 20 2a 20 40 | 70 61 72 61 6d 20 20 20 | * @|param |
|00003fd0| 75 72 6c 20 20 20 61 6e | 20 61 62 73 6f 6c 75 74 |url an| absolut|
|00003fe0| 65 20 55 52 4c 20 67 69 | 76 69 6e 67 20 74 68 65 |e URL gi|ving the|
|00003ff0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 | locatio|n of the|
|00004000| 20 61 75 64 69 6f 20 63 | 6c 69 70 2e 0a 20 20 20 | audio c|lip.. |
|00004010| 20 20 2a 20 40 72 65 74 | 75 72 6e 20 20 74 68 65 | * @ret|urn the|
|00004020| 20 61 75 64 69 6f 20 63 | 6c 69 70 20 61 74 20 74 | audio c|lip at t|
|00004030| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 55 52 4c |he speci|fied URL|
|00004040| 2e 0a 20 20 20 20 20 2a | 20 40 73 69 6e 63 65 20 |.. *| @since |
|00004050| 20 20 4a 44 4b 31 2e 30 | 0a 20 20 20 20 20 2a 2f | JDK1.0|. */|
|00004060| 0a 20 20 20 20 41 75 64 | 69 6f 43 6c 69 70 20 67 |. Aud|ioClip g|
|00004070| 65 74 41 75 64 69 6f 43 | 6c 69 70 28 55 52 4c 20 |etAudioC|lip(URL |
|00004080| 75 72 6c 29 3b 0a 0a 20 | 20 20 20 2f 2a 2a 0a 20 |url);.. | /**. |
|00004090| 20 20 20 20 2a 20 52 65 | 74 75 72 6e 73 20 61 6e | * Re|turns an|
|000040a0| 20 3c 63 6f 64 65 3e 49 | 6d 61 67 65 3c 2f 63 6f | <code>I|mage</co|
|000040b0| 64 65 3e 20 6f 62 6a 65 | 63 74 20 74 68 61 74 20 |de> obje|ct that |
|000040c0| 63 61 6e 20 74 68 65 6e | 20 62 65 20 70 61 69 6e |can then| be pain|
|000040d0| 74 65 64 20 6f 6e 20 0a | 20 20 20 20 20 2a 20 74 |ted on .| * t|
|000040e0| 68 65 20 73 63 72 65 65 | 6e 2e 20 54 68 65 20 3c |he scree|n. The <|
|000040f0| 63 6f 64 65 3e 75 72 6c | 3c 2f 63 6f 64 65 3e 20 |code>url|</code> |
|00004100| 61 72 67 75 6d 65 6e 74 | 3c 63 6f 64 65 3e 20 3c |argument|<code> <|
|00004110| 2f 63 6f 64 65 3e 74 68 | 61 74 20 69 73 20 0a 20 |/code>th|at is . |
|00004120| 20 20 20 20 2a 20 70 61 | 73 73 65 64 20 61 73 20 | * pa|ssed as |
|00004130| 61 6e 20 61 72 67 75 6d | 65 6e 74 20 6d 75 73 74 |an argum|ent must|
|00004140| 20 73 70 65 63 69 66 79 | 20 61 6e 20 61 62 73 6f | specify| an abso|
|00004150| 6c 75 74 65 20 55 52 4c | 2e 20 0a 20 20 20 20 20 |lute URL|. . |
|00004160| 2a 20 3c 70 3e 0a 20 20 | 20 20 20 2a 20 54 68 69 |* <p>. | * Thi|
|00004170| 73 20 6d 65 74 68 6f 64 | 20 61 6c 77 61 79 73 20 |s method| always |
|00004180| 72 65 74 75 72 6e 73 20 | 69 6d 6d 65 64 69 61 74 |returns |immediat|
|00004190| 65 6c 79 2c 20 77 68 65 | 74 68 65 72 20 6f 72 20 |ely, whe|ther or |
|000041a0| 6e 6f 74 20 74 68 65 20 | 69 6d 61 67 65 20 0a 20 |not the |image . |
|000041b0| 20 20 20 20 2a 20 65 78 | 69 73 74 73 2e 20 57 68 | * ex|ists. Wh|
|000041c0| 65 6e 20 74 68 65 20 61 | 70 70 6c 65 74 20 61 74 |en the a|pplet at|
|000041d0| 74 65 6d 70 74 73 20 74 | 6f 20 64 72 61 77 20 74 |tempts t|o draw t|
|000041e0| 68 65 20 69 6d 61 67 65 | 20 6f 6e 20 74 68 65 20 |he image| on the |
|000041f0| 73 63 72 65 65 6e 2c 20 | 0a 20 20 20 20 20 2a 20 |screen, |. * |
|00004200| 74 68 65 20 64 61 74 61 | 20 77 69 6c 6c 20 62 65 |the data| will be|
|00004210| 20 6c 6f 61 64 65 64 2e | 20 54 68 65 20 67 72 61 | loaded.| The gra|
|00004220| 70 68 69 63 73 20 70 72 | 69 6d 69 74 69 76 65 73 |phics pr|imitives|
|00004230| 20 74 68 61 74 20 64 72 | 61 77 20 74 68 65 20 0a | that dr|aw the .|
|00004240| 20 20 20 20 20 2a 20 69 | 6d 61 67 65 20 77 69 6c | * i|mage wil|
|00004250| 6c 20 69 6e 63 72 65 6d | 65 6e 74 61 6c 6c 79 20 |l increm|entally |
|00004260| 70 61 69 6e 74 20 6f 6e | 20 74 68 65 20 73 63 72 |paint on| the scr|
|00004270| 65 65 6e 2e 20 0a 20 20 | 20 20 20 2a 0a 20 20 20 |een. . | *. |
|00004280| 20 20 2a 20 40 70 61 72 | 61 6d 20 20 20 75 72 6c | * @par|am url|
|00004290| 20 20 20 61 6e 20 61 62 | 73 6f 6c 75 74 65 20 55 | an ab|solute U|
|000042a0| 52 4c 20 67 69 76 69 6e | 67 20 74 68 65 20 6c 6f |RL givin|g the lo|
|000042b0| 63 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 69 6d |cation o|f the im|
|000042c0| 61 67 65 2e 0a 20 20 20 | 20 20 2a 20 40 72 65 74 |age.. | * @ret|
|000042d0| 75 72 6e 20 20 74 68 65 | 20 69 6d 61 67 65 20 61 |urn the| image a|
|000042e0| 74 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |t the sp|ecified |
|000042f0| 55 52 4c 2e 0a 20 20 20 | 20 20 2a 20 40 73 65 65 |URL.. | * @see|
|00004300| 20 20 20 20 20 6a 61 76 | 61 2e 61 77 74 2e 49 6d | jav|a.awt.Im|
|00004310| 61 67 65 0a 20 20 20 20 | 20 2a 20 40 73 69 6e 63 |age. | * @sinc|
|00004320| 65 20 20 20 4a 44 4b 31 | 2e 30 0a 20 20 20 20 20 |e JDK1|.0. |
|00004330| 2a 2f 0a 20 20 20 20 49 | 6d 61 67 65 20 67 65 74 |*/. I|mage get|
|00004340| 49 6d 61 67 65 28 55 52 | 4c 20 75 72 6c 29 3b 0a |Image(UR|L url);.|
|00004350| 0a 20 20 20 20 2f 2a 2a | 0a 20 20 20 20 20 2a 20 |. /**|. * |
|00004360| 46 69 6e 64 73 20 61 6e | 64 20 72 65 74 75 72 6e |Finds an|d return|
|00004370| 73 20 74 68 65 20 61 70 | 70 6c 65 74 20 69 6e 20 |s the ap|plet in |
|00004380| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 72 65 70 |the docu|ment rep|
|00004390| 72 65 73 65 6e 74 65 64 | 20 62 79 20 74 68 69 73 |resented| by this|
|000043a0| 20 0a 20 20 20 20 20 2a | 20 61 70 70 6c 65 74 20 | . *| applet |
|000043b0| 63 6f 6e 74 65 78 74 20 | 77 69 74 68 20 74 68 65 |context |with the|
|000043c0| 20 67 69 76 65 6e 20 6e | 61 6d 65 2e 20 54 68 65 | given n|ame. The|
|000043d0| 20 6e 61 6d 65 20 63 61 | 6e 20 62 65 20 73 65 74 | name ca|n be set|
|000043e0| 20 69 6e 20 74 68 65 20 | 0a 20 20 20 20 20 2a 20 | in the |. * |
|000043f0| 48 54 4d 4c 20 74 61 67 | 20 62 79 20 73 65 74 74 |HTML tag| by sett|
|00004400| 69 6e 67 20 74 68 65 20 | 3c 63 6f 64 65 3e 6e 61 |ing the |<code>na|
|00004410| 6d 65 3c 2f 63 6f 64 65 | 3e 20 61 74 74 72 69 62 |me</code|> attrib|
|00004420| 75 74 65 2e 20 0a 20 20 | 20 20 20 2a 0a 20 20 20 |ute. . | *. |
|00004430| 20 20 2a 20 40 70 61 72 | 61 6d 20 20 20 6e 61 6d | * @par|am nam|
|00004440| 65 20 20 20 61 6e 20 61 | 70 70 6c 65 74 20 6e 61 |e an a|pplet na|
|00004450| 6d 65 2e 0a 20 20 20 20 | 20 2a 20 40 72 65 74 75 |me.. | * @retu|
|00004460| 72 6e 20 20 74 68 65 20 | 61 70 70 6c 65 74 20 77 |rn the |applet w|
|00004470| 69 74 68 20 74 68 65 20 | 67 69 76 65 6e 20 6e 61 |ith the |given na|
|00004480| 6d 65 2c 20 6f 72 20 3c | 63 6f 64 65 3e 6e 75 6c |me, or <|code>nul|
|00004490| 6c 3c 2f 63 6f 64 65 3e | 20 69 66 0a 20 20 20 20 |l</code>| if. |
|000044a0| 20 2a 20 20 20 20 20 20 | 20 20 20 20 6e 6f 74 20 | * | not |
|000044b0| 66 6f 75 6e 64 2e 0a 20 | 20 20 20 20 2a 20 40 73 |found.. | * @s|
|000044c0| 69 6e 63 65 20 20 20 4a | 44 4b 31 2e 30 0a 20 20 |ince J|DK1.0. |
|000044d0| 20 20 20 2a 2f 0a 20 20 | 20 20 41 70 70 6c 65 74 | */. | Applet|
|000044e0| 20 67 65 74 41 70 70 6c | 65 74 28 53 74 72 69 6e | getAppl|et(Strin|
|000044f0| 67 20 6e 61 6d 65 29 3b | 0a 0a 20 20 20 20 2f 2a |g name);|.. /*|
|00004500| 2a 0a 20 20 20 20 20 2a | 20 46 69 6e 64 73 20 61 |*. *| Finds a|
|00004510| 6c 6c 20 74 68 65 20 61 | 70 70 6c 65 74 73 20 69 |ll the a|pplets i|
|00004520| 6e 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 72 |n the do|cument r|
|00004530| 65 70 72 65 73 65 6e 74 | 65 64 20 62 79 20 74 68 |epresent|ed by th|
|00004540| 69 73 20 61 70 70 6c 65 | 74 20 0a 20 20 20 20 20 |is apple|t . |
|00004550| 2a 20 63 6f 6e 74 65 78 | 74 2e 20 0a 20 20 20 20 |* contex|t. . |
|00004560| 20 2a 0a 20 20 20 20 20 | 2a 20 40 72 65 74 75 72 | *. |* @retur|
|00004570| 6e 20 20 61 6e 20 65 6e | 75 6d 65 72 61 74 69 6f |n an en|umeratio|
|00004580| 6e 20 6f 66 20 61 6c 6c | 20 61 70 70 6c 65 74 73 |n of all| applets|
|00004590| 20 69 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | in the |document|
|000045a0| 20 72 65 70 72 65 73 65 | 6e 74 65 64 20 62 79 0a | represe|nted by.|
|000045b0| 20 20 20 20 20 2a 20 20 | 20 20 20 20 20 20 20 20 | * | |
|000045c0| 74 68 69 73 20 61 70 70 | 6c 65 74 20 63 6f 6e 74 |this app|let cont|
|000045d0| 65 78 74 2e 0a 20 20 20 | 20 20 2a 20 40 73 69 6e |ext.. | * @sin|
|000045e0| 63 65 20 20 20 4a 44 4b | 31 2e 30 0a 20 20 20 20 |ce JDK|1.0. |
|000045f0| 20 2a 2f 0a 20 20 20 20 | 45 6e 75 6d 65 72 61 74 | */. |Enumerat|
|00004600| 69 6f 6e 20 67 65 74 41 | 70 70 6c 65 74 73 28 29 |ion getA|pplets()|
|00004610| 3b 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |;.. /|**. |
|00004620| 2a 20 52 65 70 6c 61 63 | 65 73 20 74 68 65 20 57 |* Replac|es the W|
|00004630| 65 62 20 70 61 67 65 20 | 63 75 72 72 65 6e 74 6c |eb page |currentl|
|00004640| 79 20 62 65 69 6e 67 20 | 76 69 65 77 65 64 20 77 |y being |viewed w|
|00004650| 69 74 68 20 74 68 65 20 | 67 69 76 65 6e 20 55 52 |ith the |given UR|
|00004660| 4c 2e 20 0a 20 20 20 20 | 20 2a 20 54 68 69 73 20 |L. . | * This |
|00004670| 6d 65 74 68 6f 64 20 6d | 61 79 20 62 65 20 69 67 |method m|ay be ig|
|00004680| 6e 6f 72 65 64 20 62 79 | 20 61 70 70 6c 65 74 20 |nored by| applet |
|00004690| 63 6f 6e 74 65 78 74 73 | 20 74 68 61 74 20 61 72 |contexts| that ar|
|000046a0| 65 20 6e 6f 74 20 0a 20 | 20 20 20 20 2a 20 62 72 |e not . | * br|
|000046b0| 6f 77 73 65 72 73 2e 20 | 0a 20 20 20 20 20 2a 0a |owsers. |. *.|
|000046c0| 20 20 20 20 20 2a 20 40 | 70 61 72 61 6d 20 20 20 | * @|param |
|000046d0| 75 72 6c 20 20 20 61 6e | 20 61 62 73 6f 6c 75 74 |url an| absolut|
|000046e0| 65 20 55 52 4c 20 67 69 | 76 69 6e 67 20 74 68 65 |e URL gi|ving the|
|000046f0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 | locatio|n of the|
|00004700| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 20 20 20 20 20 | documen|t.. |
|00004710| 2a 20 40 73 69 6e 63 65 | 20 20 20 4a 44 4b 31 2e |* @since| JDK1.|
|00004720| 30 0a 20 20 20 20 20 2a | 2f 0a 20 20 20 20 76 6f |0. *|/. vo|
|00004730| 69 64 20 73 68 6f 77 44 | 6f 63 75 6d 65 6e 74 28 |id showD|ocument(|
|00004740| 55 52 4c 20 75 72 6c 29 | 3b 0a 0a 20 20 20 20 2f |URL url)|;.. /|
|00004750| 2a 2a 0a 20 20 20 20 20 | 2a 20 52 65 71 75 65 73 |**. |* Reques|
|00004760| 74 73 20 74 68 61 74 20 | 74 68 65 20 62 72 6f 77 |ts that |the brow|
|00004770| 73 65 72 20 6f 72 20 61 | 70 70 6c 65 74 20 76 69 |ser or a|pplet vi|
|00004780| 65 77 65 72 20 73 68 6f | 77 20 74 68 65 20 57 65 |ewer sho|w the We|
|00004790| 62 20 70 61 67 65 20 0a | 20 20 20 20 20 2a 20 69 |b page .| * i|
|000047a0| 6e 64 69 63 61 74 65 64 | 20 62 79 20 74 68 65 20 |ndicated| by the |
|000047b0| 3c 63 6f 64 65 3e 75 72 | 6c 3c 2f 63 6f 64 65 3e |<code>ur|l</code>|
|000047c0| 20 61 72 67 75 6d 65 6e | 74 2e 20 54 68 65 20 0a | argumen|t. The .|
|000047d0| 20 20 20 20 20 2a 20 3c | 63 6f 64 65 3e 74 61 72 | * <|code>tar|
|000047e0| 67 65 74 3c 2f 63 6f 64 | 65 3e 20 61 72 67 75 6d |get</cod|e> argum|
|000047f0| 65 6e 74 20 69 6e 64 69 | 63 61 74 65 73 20 69 6e |ent indi|cates in|
|00004800| 20 77 68 69 63 68 20 48 | 54 4d 4c 20 66 72 61 6d | which H|TML fram|
|00004810| 65 20 74 68 65 20 0a 20 | 20 20 20 20 2a 20 64 6f |e the . | * do|
|00004820| 63 75 6d 65 6e 74 20 69 | 73 20 74 6f 20 62 65 20 |cument i|s to be |
|00004830| 64 69 73 70 6c 61 79 65 | 64 2e 20 0a 20 20 20 20 |displaye|d. . |
|00004840| 20 2a 20 54 68 65 20 74 | 61 72 67 65 74 20 61 72 | * The t|arget ar|
|00004850| 67 75 6d 65 6e 74 20 69 | 73 20 69 6e 74 65 72 70 |gument i|s interp|
|00004860| 72 65 74 65 64 20 61 73 | 20 66 6f 6c 6c 6f 77 73 |reted as| follows|
|00004870| 3a 0a 20 20 20 20 20 2a | 20 3c 70 3e 0a 20 20 20 |:. *| <p>. |
|00004880| 20 20 2a 20 3c 63 65 6e | 74 65 72 3e 3c 74 61 62 | * <cen|ter><tab|
|00004890| 6c 65 20 62 6f 72 64 65 | 72 3d 22 33 22 3e 20 0a |le borde|r="3"> .|
|000048a0| 20 20 20 20 20 2a 20 3c | 74 72 3e 3c 74 64 3e 3c | * <|tr><td><|
|000048b0| 63 6f 64 65 3e 22 5f 73 | 65 6c 66 22 3c 2f 63 6f |code>"_s|elf"</co|
|000048c0| 64 65 3e 20 20 3c 74 64 | 3e 53 68 6f 77 20 69 6e |de> <td|>Show in|
|000048d0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 61 6e 64 20 | the win|dow and |
|000048e0| 66 72 61 6d 65 20 74 68 | 61 74 20 0a 20 20 20 20 |frame th|at . |
|000048f0| 20 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00004900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004910| 20 20 20 20 20 63 6f 6e | 74 61 69 6e 20 74 68 65 | con|tain the|
|00004920| 20 61 70 70 6c 65 74 2e | 3c 2f 74 72 3e 0a 20 20 | applet.|</tr>. |
|00004930| 20 20 20 2a 20 3c 74 72 | 3e 3c 74 64 3e 3c 63 6f | * <tr|><td><co|
|00004940| 64 65 3e 22 5f 70 61 72 | 65 6e 74 22 3c 2f 63 6f |de>"_par|ent"</co|
|00004950| 64 65 3e 3c 74 64 3e 53 | 68 6f 77 20 69 6e 20 74 |de><td>S|how in t|
|00004960| 68 65 20 61 70 70 6c 65 | 74 27 73 20 70 61 72 65 |he apple|t's pare|
|00004970| 6e 74 20 66 72 61 6d 65 | 2e 20 49 66 20 0a 20 20 |nt frame|. If . |
|00004980| 20 20 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00004990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049a0| 20 20 20 20 20 20 20 74 | 68 65 20 61 70 70 6c 65 | t|he apple|
|000049b0| 74 27 73 20 66 72 61 6d | 65 20 68 61 73 20 6e 6f |t's fram|e has no|
|000049c0| 20 70 61 72 65 6e 74 20 | 66 72 61 6d 65 2c 20 0a | parent |frame, .|
|000049d0| 20 20 20 20 20 2a 20 20 | 20 20 20 20 20 20 20 20 | * | |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049f0| 20 20 20 20 20 20 20 20 | 20 61 63 74 73 20 74 68 | | acts th|
|00004a00| 65 20 73 61 6d 65 20 61 | 73 20 22 5f 73 65 6c 66 |e same a|s "_self|
|00004a10| 22 2e 3c 2f 74 72 3e 0a | 20 20 20 20 20 2a 20 3c |".</tr>.| * <|
|00004a20| 74 72 3e 3c 74 64 3e 3c | 63 6f 64 65 3e 22 5f 74 |tr><td><|code>"_t|
|00004a30| 6f 70 22 3c 2f 63 6f 64 | 65 3e 20 20 20 3c 74 64 |op"</cod|e> <td|
|00004a40| 3e 53 68 6f 77 20 69 6e | 20 74 68 65 20 74 6f 70 |>Show in| the top|
|00004a50| 2d 6c 65 76 65 6c 20 66 | 72 61 6d 65 20 6f 66 20 |-level f|rame of |
|00004a60| 74 68 65 20 61 70 70 6c | 65 74 27 73 20 0a 20 20 |the appl|et's . |
|00004a70| 20 20 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00004a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a90| 20 20 20 20 20 20 20 77 | 69 6e 64 6f 77 2e 20 49 | w|indow. I|
|00004aa0| 66 20 74 68 65 20 61 70 | 70 6c 65 74 27 73 20 66 |f the ap|plet's f|
|00004ab0| 72 61 6d 65 20 69 73 20 | 74 68 65 20 0a 20 20 20 |rame is |the . |
|00004ac0| 20 20 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00004ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ae0| 20 20 20 20 20 20 74 6f | 70 2d 6c 65 76 65 6c 20 | to|p-level |
|00004af0| 66 72 61 6d 65 2c 20 61 | 63 74 73 20 74 68 65 20 |frame, a|cts the |
|00004b00| 73 61 6d 65 20 61 73 20 | 22 5f 73 65 6c 66 22 2e |same as |"_self".|
|00004b10| 3c 2f 74 72 3e 0a 20 20 | 20 20 20 2a 20 3c 74 72 |</tr>. | * <tr|
|00004b20| 3e 3c 74 64 3e 3c 63 6f | 64 65 3e 22 5f 62 6c 61 |><td><co|de>"_bla|
|00004b30| 6e 6b 22 3c 2f 63 6f 64 | 65 3e 20 3c 74 64 3e 53 |nk"</cod|e> <td>S|
|00004b40| 68 6f 77 20 69 6e 20 61 | 20 6e 65 77 2c 20 75 6e |how in a| new, un|
|00004b50| 6e 61 6d 65 64 0a 20 20 | 20 20 20 2a 20 20 20 20 |named. | * |
|00004b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|00004b80| 6f 70 2d 6c 65 76 65 6c | 20 77 69 6e 64 6f 77 2e |op-level| window.|
|00004b90| 3c 2f 74 72 3e 0a 20 20 | 20 20 20 2a 20 3c 74 72 |</tr>. | * <tr|
|00004ba0| 3e 3c 74 64 3e 3c 69 3e | 6e 61 6d 65 3c 2f 69 3e |><td><i>|name</i>|
|00004bb0| 3c 74 64 3e 53 68 6f 77 | 20 69 6e 20 74 68 65 20 |<td>Show| in the |
|00004bc0| 66 72 61 6d 65 20 6f 72 | 20 77 69 6e 64 6f 77 20 |frame or| window |
|00004bd0| 6e 61 6d 65 64 20 3c 69 | 3e 6e 61 6d 65 3c 2f 69 |named <i|>name</i|
|00004be0| 3e 2e 20 49 66 20 0a 20 | 20 20 20 20 2a 20 20 20 |>. If . | * |
|00004bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c00| 20 20 20 20 20 61 20 74 | 61 72 67 65 74 20 6e 61 | a t|arget na|
|00004c10| 6d 65 64 20 3c 69 3e 6e | 61 6d 65 3c 2f 69 3e 20 |med <i>n|ame</i> |
|00004c20| 64 6f 65 73 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 |does not| already|
|00004c30| 20 65 78 69 73 74 2c 20 | 61 20 0a 20 20 20 20 20 | exist, |a . |
|00004c40| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00004c50| 20 20 20 20 20 20 20 20 | 20 6e 65 77 20 74 6f 70 | | new top|
|00004c60| 2d 6c 65 76 65 6c 20 77 | 69 6e 64 6f 77 20 77 69 |-level w|indow wi|
|00004c70| 74 68 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |th the s|pecified|
|00004c80| 20 6e 61 6d 65 20 69 73 | 20 63 72 65 61 74 65 64 | name is| created|
|00004c90| 2c 20 0a 20 20 20 20 20 | 2a 20 20 20 20 20 20 20 |, . |* |
|00004ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cb0| 20 61 6e 64 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | and the| documen|
|00004cc0| 74 20 69 73 20 73 68 6f | 77 6e 20 74 68 65 72 65 |t is sho|wn there|
|00004cd0| 2e 3c 2f 74 72 3e 0a 20 | 20 20 20 20 2a 20 3c 2f |.</tr>. | * </|
|00004ce0| 74 61 62 6c 65 3e 20 3c | 2f 63 65 6e 74 65 72 3e |table> <|/center>|
|00004cf0| 0a 20 20 20 20 20 2a 20 | 3c 70 3e 0a 20 20 20 20 |. * |<p>. |
|00004d00| 20 2a 20 41 6e 20 61 70 | 70 6c 65 74 20 76 69 65 | * An ap|plet vie|
|00004d10| 77 65 72 20 6f 72 20 62 | 72 6f 77 73 65 72 20 69 |wer or b|rowser i|
|00004d20| 73 20 66 72 65 65 20 74 | 6f 20 69 67 6e 6f 72 65 |s free t|o ignore|
|00004d30| 20 3c 63 6f 64 65 3e 73 | 68 6f 77 44 6f 63 75 6d | <code>s|howDocum|
|00004d40| 65 6e 74 3c 2f 63 6f 64 | 65 3e 2e 20 0a 20 20 20 |ent</cod|e>. . |
|00004d50| 20 20 2a 0a 20 20 20 20 | 20 2a 20 40 70 61 72 61 | *. | * @para|
|00004d60| 6d 20 20 20 75 72 6c 20 | 20 20 61 6e 20 61 62 73 |m url | an abs|
|00004d70| 6f 6c 75 74 65 20 55 52 | 4c 20 67 69 76 69 6e 67 |olute UR|L giving|
|00004d80| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 | the loc|ation of|
|00004d90| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 2e 0a 20 | the doc|ument.. |
|00004da0| 20 20 20 20 2a 20 40 70 | 61 72 61 6d 20 20 20 74 | * @p|aram t|
|00004db0| 61 72 67 65 74 20 20 20 | 61 20 3c 63 6f 64 65 3e |arget |a <code>|
|00004dc0| 53 74 72 69 6e 67 3c 2f | 63 6f 64 65 3e 20 69 6e |String</|code> in|
|00004dd0| 64 69 63 61 74 69 6e 67 | 20 77 68 65 72 65 20 74 |dicating| where t|
|00004de0| 6f 20 64 69 73 70 6c 61 | 79 0a 20 20 20 20 20 2a |o displa|y. *|
|00004df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e00| 20 20 20 74 68 65 20 70 | 61 67 65 2e 0a 20 20 20 | the p|age.. |
|00004e10| 20 20 2a 20 40 73 69 6e | 63 65 20 20 20 4a 44 4b | * @sin|ce JDK|
|00004e20| 31 2e 30 0a 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 |1.0. | */. |
|00004e30| 70 75 62 6c 69 63 20 76 | 6f 69 64 20 73 68 6f 77 |public v|oid show|
|00004e40| 44 6f 63 75 6d 65 6e 74 | 28 55 52 4c 20 75 72 6c |Document|(URL url|
|00004e50| 2c 20 53 74 72 69 6e 67 | 20 74 61 72 67 65 74 29 |, String| target)|
|00004e60| 3b 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |;.. /|**. |
|00004e70| 2a 20 52 65 71 75 65 73 | 74 73 20 74 68 61 74 20 |* Reques|ts that |
|00004e80| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 73 74 72 |the argu|ment str|
|00004e90| 69 6e 67 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ing be d|isplayed|
|00004ea0| 20 69 6e 20 74 68 65 20 | 0a 20 20 20 20 20 2a 20 | in the |. * |
|00004eb0| 22 73 74 61 74 75 73 20 | 77 69 6e 64 6f 77 22 2e |"status |window".|
|00004ec0| 20 4d 61 6e 79 20 62 72 | 6f 77 73 65 72 73 20 61 | Many br|owsers a|
|00004ed0| 6e 64 20 61 70 70 6c 65 | 74 20 76 69 65 77 65 72 |nd apple|t viewer|
|00004ee0| 73 20 0a 20 20 20 20 20 | 2a 20 70 72 6f 76 69 64 |s . |* provid|
|00004ef0| 65 20 73 75 63 68 20 61 | 20 77 69 6e 64 6f 77 2c |e such a| window,|
|00004f00| 20 77 68 65 72 65 20 74 | 68 65 20 61 70 70 6c 69 | where t|he appli|
|00004f10| 63 61 74 69 6f 6e 20 63 | 61 6e 20 69 6e 66 6f 72 |cation c|an infor|
|00004f20| 6d 20 75 73 65 72 73 20 | 6f 66 20 0a 20 20 20 20 |m users |of . |
|00004f30| 20 2a 20 69 74 73 20 63 | 75 72 72 65 6e 74 20 73 | * its c|urrent s|
|00004f40| 74 61 74 65 2e 20 0a 20 | 20 20 20 20 2a 0a 20 20 |tate. . | *. |
|00004f50| 20 20 20 2a 20 40 70 61 | 72 61 6d 20 20 20 73 74 | * @pa|ram st|
|00004f60| 61 74 75 73 20 20 20 61 | 20 73 74 72 69 6e 67 20 |atus a| string |
|00004f70| 74 6f 20 64 69 73 70 6c | 61 79 20 69 6e 20 74 68 |to displ|ay in th|
|00004f80| 65 20 73 74 61 74 75 73 | 20 77 69 6e 64 6f 77 2e |e status| window.|
|00004f90| 0a 20 20 20 20 20 2a 20 | 40 73 69 6e 63 65 20 20 |. * |@since |
|00004fa0| 20 4a 44 4b 31 2e 30 0a | 20 20 20 20 20 2a 2f 0a | JDK1.0.| */.|
|00004fb0| 20 20 20 20 76 6f 69 64 | 20 73 68 6f 77 53 74 61 | void| showSta|
|00004fc0| 74 75 73 28 53 74 72 69 | 6e 67 20 73 74 61 74 75 |tus(Stri|ng statu|
|00004fd0| 73 29 3b 0a 7d 0a 50 4b | 03 04 0a 00 00 00 00 00 |s);.}.PK|........|
|00004fe0| 0c 5a 74 24 a9 d1 8e ec | ad 0a 00 00 ad 0a 00 00 |.Zt$....|........|
|00004ff0| 1b 00 00 00 6a 61 76 61 | 2f 61 70 70 6c 65 74 2f |....java|/applet/|
|00005000| 41 70 70 6c 65 74 53 74 | 75 62 2e 6a 61 76 61 2f |AppletSt|ub.java/|
|00005010| 2a 0a 20 2a 20 40 28 23 | 29 41 70 70 6c 65 74 53 |*. * @(#|)AppletS|
|00005020| 74 75 62 2e 6a 61 76 61 | 09 31 2e 31 36 20 39 38 |tub.java|.1.16 98|
|00005030| 2f 30 33 2f 31 38 0a 20 | 2a 0a 20 2a 20 43 6f 70 |/03/18. |*. * Cop|
|00005040| 79 72 69 67 68 74 20 31 | 39 39 35 2d 31 39 39 38 |yright 1|995-1998|
|00005050| 20 62 79 20 53 75 6e 20 | 4d 69 63 72 6f 73 79 73 | by Sun |Microsys|
|00005060| 74 65 6d 73 2c 20 49 6e | 63 2e 2c 0a 20 2a 20 39 |tems, In|c.,. * 9|
|00005070| 30 31 20 53 61 6e 20 41 | 6e 74 6f 6e 69 6f 20 52 |01 San A|ntonio R|
|00005080| 6f 61 64 2c 20 50 61 6c | 6f 20 41 6c 74 6f 2c 20 |oad, Pal|o Alto, |
|00005090| 43 61 6c 69 66 6f 72 6e | 69 61 2c 20 39 34 33 30 |Californ|ia, 9430|
|000050a0| 33 2c 20 55 2e 53 2e 41 | 2e 0a 20 2a 20 41 6c 6c |3, U.S.A|.. * All|
|000050b0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000050c0| 2e 0a 20 2a 0a 20 2a 20 | 54 68 69 73 20 73 6f 66 |.. *. * |This sof|
|000050d0| 74 77 61 72 65 20 69 73 | 20 74 68 65 20 63 6f 6e |tware is| the con|
|000050e0| 66 69 64 65 6e 74 69 61 | 6c 20 61 6e 64 20 70 72 |fidentia|l and pr|
|000050f0| 6f 70 72 69 65 74 61 72 | 79 20 69 6e 66 6f 72 6d |oprietar|y inform|
|00005100| 61 74 69 6f 6e 0a 20 2a | 20 6f 66 20 53 75 6e 20 |ation. *| of Sun |
|00005110| 4d 69 63 72 6f 73 79 73 | 74 65 6d 73 2c 20 49 6e |Microsys|tems, In|
|00005120| 63 2e 20 28 22 43 6f 6e | 66 69 64 65 6e 74 69 61 |c. ("Con|fidentia|
|00005130| 6c 20 49 6e 66 6f 72 6d | 61 74 69 6f 6e 22 29 2e |l Inform|ation").|
|00005140| 20 20 59 6f 75 0a 20 2a | 20 73 68 61 6c 6c 20 6e | You. *| shall n|
|00005150| 6f 74 20 64 69 73 63 6c | 6f 73 65 20 73 75 63 68 |ot discl|ose such|
|00005160| 20 43 6f 6e 66 69 64 65 | 6e 74 69 61 6c 20 49 6e | Confide|ntial In|
|00005170| 66 6f 72 6d 61 74 69 6f | 6e 20 61 6e 64 20 73 68 |formatio|n and sh|
|00005180| 61 6c 6c 20 75 73 65 0a | 20 2a 20 69 74 20 6f 6e |all use.| * it on|
|00005190| 6c 79 20 69 6e 20 61 63 | 63 6f 72 64 61 6e 63 65 |ly in ac|cordance|
|000051a0| 20 77 69 74 68 20 74 68 | 65 20 74 65 72 6d 73 20 | with th|e terms |
|000051b0| 6f 66 20 74 68 65 20 6c | 69 63 65 6e 73 65 20 61 |of the l|icense a|
|000051c0| 67 72 65 65 6d 65 6e 74 | 0a 20 2a 20 79 6f 75 20 |greement|. * you |
|000051d0| 65 6e 74 65 72 65 64 20 | 69 6e 74 6f 20 77 69 74 |entered |into wit|
|000051e0| 68 20 53 75 6e 2e 0a 20 | 2a 2f 0a 70 61 63 6b 61 |h Sun.. |*/.packa|
|000051f0| 67 65 20 6a 61 76 61 2e | 61 70 70 6c 65 74 3b 0a |ge java.|applet;.|
|00005200| 0a 69 6d 70 6f 72 74 20 | 6a 61 76 61 2e 6e 65 74 |.import |java.net|
|00005210| 2e 55 52 4c 3b 0a 0a 2f | 2a 2a 0a 20 2a 20 57 68 |.URL;../|**. * Wh|
|00005220| 65 6e 20 61 6e 20 61 70 | 70 6c 65 74 20 69 73 20 |en an ap|plet is |
|00005230| 66 69 72 73 74 20 63 72 | 65 61 74 65 64 2c 20 61 |first cr|eated, a|
|00005240| 6e 20 61 70 70 6c 65 74 | 20 73 74 75 62 20 69 73 |n applet| stub is|
|00005250| 20 61 74 74 61 63 68 65 | 64 20 74 6f 20 69 74 20 | attache|d to it |
|00005260| 0a 20 2a 20 75 73 69 6e | 67 20 74 68 65 20 61 70 |. * usin|g the ap|
|00005270| 70 6c 65 74 27 73 20 3c | 63 6f 64 65 3e 73 65 74 |plet's <|code>set|
|00005280| 53 74 75 62 3c 2f 63 6f | 64 65 3e 20 6d 65 74 68 |Stub</co|de> meth|
|00005290| 6f 64 2e 20 54 68 69 73 | 20 73 74 75 62 20 0a 20 |od. This| stub . |
|000052a0| 2a 20 73 65 72 76 65 73 | 20 61 73 20 74 68 65 20 |* serves| as the |
|000052b0| 69 6e 74 65 72 66 61 63 | 65 20 62 65 74 77 65 65 |interfac|e betwee|
|000052c0| 6e 20 74 68 65 20 61 70 | 70 6c 65 74 20 61 6e 64 |n the ap|plet and|
|000052d0| 20 74 68 65 20 62 72 6f | 77 73 65 72 20 0a 20 2a | the bro|wser . *|
|000052e0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 6f 72 20 | environ|ment or |
|000052f0| 61 70 70 6c 65 74 20 76 | 69 65 77 65 72 20 65 6e |applet v|iewer en|
|00005300| 76 69 72 6f 6e 6d 65 6e | 74 20 69 6e 20 77 68 69 |vironmen|t in whi|
|00005310| 63 68 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |ch the a|pplicati|
|00005320| 6f 6e 20 0a 20 2a 20 69 | 73 20 72 75 6e 6e 69 6e |on . * i|s runnin|
|00005330| 67 2e 20 0a 20 2a 0a 20 | 2a 20 40 61 75 74 68 6f |g. . *. |* @autho|
|00005340| 72 20 09 41 72 74 68 75 | 72 20 76 61 6e 20 48 6f |r .Arthu|r van Ho|
|00005350| 66 66 0a 20 2a 20 40 76 | 65 72 73 69 6f 6e 20 20 |ff. * @v|ersion |
|00005360| 20 20 20 31 2e 31 36 2c | 20 30 33 2f 31 38 2f 39 | 1.16,| 03/18/9|
|00005370| 38 0a 20 2a 20 40 73 65 | 65 20 20 20 20 20 20 20 |8. * @se|e |
|00005380| 20 20 6a 61 76 61 2e 61 | 70 70 6c 65 74 2e 41 70 | java.a|pplet.Ap|
|00005390| 70 6c 65 74 23 73 65 74 | 53 74 75 62 28 6a 61 76 |plet#set|Stub(jav|
|000053a0| 61 2e 61 70 70 6c 65 74 | 2e 41 70 70 6c 65 74 53 |a.applet|.AppletS|
|000053b0| 74 75 62 29 0a 20 2a 20 | 40 73 69 6e 63 65 20 20 |tub). * |@since |
|000053c0| 20 20 20 20 20 4a 44 4b | 31 2e 30 0a 20 2a 2f 0a | JDK|1.0. */.|
|000053d0| 70 75 62 6c 69 63 20 69 | 6e 74 65 72 66 61 63 65 |public i|nterface|
|000053e0| 20 41 70 70 6c 65 74 53 | 74 75 62 20 7b 0a 20 20 | AppletS|tub {. |
|000053f0| 20 20 2f 2a 2a 0a 20 20 | 20 20 20 2a 20 44 65 74 | /**. | * Det|
|00005400| 65 72 6d 69 6e 65 73 20 | 69 66 20 74 68 65 20 61 |ermines |if the a|
|00005410| 70 70 6c 65 74 20 69 73 | 20 61 63 74 69 76 65 2e |pplet is| active.|
|00005420| 20 41 6e 20 61 70 70 6c | 65 74 20 69 73 20 61 63 | An appl|et is ac|
|00005430| 74 69 76 65 20 6a 75 73 | 74 20 0a 20 20 20 20 20 |tive jus|t . |
|00005440| 2a 20 62 65 66 6f 72 65 | 20 69 74 73 20 3c 63 6f |* before| its <co|
|00005450| 64 65 3e 73 74 61 72 74 | 3c 2f 63 6f 64 65 3e 20 |de>start|</code> |
|00005460| 6d 65 74 68 6f 64 20 69 | 73 20 63 61 6c 6c 65 64 |method i|s called|
|00005470| 2e 20 49 74 20 62 65 63 | 6f 6d 65 73 20 0a 20 20 |. It bec|omes . |
|00005480| 20 20 20 2a 20 69 6e 61 | 63 74 69 76 65 20 6a 75 | * ina|ctive ju|
|00005490| 73 74 20 62 65 66 6f 72 | 65 20 69 74 73 20 3c 63 |st befor|e its <c|
|000054a0| 6f 64 65 3e 73 74 6f 70 | 3c 2f 63 6f 64 65 3e 20 |ode>stop|</code> |
|000054b0| 6d 65 74 68 6f 64 20 69 | 73 20 63 61 6c 6c 65 64 |method i|s called|
|000054c0| 2e 20 0a 20 20 20 20 20 | 2a 0a 20 20 20 20 20 2a |. . |*. *|
|000054d0| 20 40 72 65 74 75 72 6e | 20 20 3c 63 6f 64 65 3e | @return| <code>|
|000054e0| 74 72 75 65 3c 2f 63 6f | 64 65 3e 20 69 66 20 74 |true</co|de> if t|
|000054f0| 68 65 20 61 70 70 6c 65 | 74 20 69 73 20 61 63 74 |he apple|t is act|
|00005500| 69 76 65 3b 0a 20 20 20 | 20 20 2a 20 20 20 20 20 |ive;. | * |
|00005510| 20 20 20 20 20 3c 63 6f | 64 65 3e 66 61 6c 73 65 | <co|de>false|
|00005520| 3c 2f 63 6f 64 65 3e 20 | 6f 74 68 65 72 77 69 73 |</code> |otherwis|
|00005530| 65 2e 0a 20 20 20 20 20 | 2a 20 40 73 69 6e 63 65 |e.. |* @since|
|00005540| 20 20 20 4a 44 4b 31 2e | 30 0a 20 20 20 20 20 2a | JDK1.|0. *|
|00005550| 2f 0a 20 20 20 20 62 6f | 6f 6c 65 61 6e 20 69 73 |/. bo|olean is|
|00005560| 41 63 74 69 76 65 28 29 | 3b 0a 20 20 20 20 0a 20 |Active()|;. . |
|00005570| 20 20 20 2f 2a 2a 0a 20 | 20 20 20 20 2a 20 47 65 | /**. | * Ge|
|00005580| 74 73 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |ts the d|ocument |
|00005590| 55 52 4c 2e 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |URL.. | *. |
|000055a0| 20 2a 20 40 72 65 74 75 | 72 6e 20 20 74 68 65 20 | * @retu|rn the |
|000055b0| 3c 63 6f 64 65 3e 55 52 | 4c 3c 2f 63 6f 64 65 3e |<code>UR|L</code>|
|000055c0| 20 6f 66 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | of the |document|
|000055d0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 65 20 | contain|ing the |
|000055e0| 61 70 70 6c 65 74 2e 0a | 20 20 20 20 20 2a 20 40 |applet..| * @|
|000055f0| 73 69 6e 63 65 20 20 20 | 4a 44 4b 31 2e 30 0a 20 |since |JDK1.0. |
|00005600| 20 20 20 20 2a 2f 0a 20 | 20 20 20 55 52 4c 20 67 | */. | URL g|
|00005610| 65 74 44 6f 63 75 6d 65 | 6e 74 42 61 73 65 28 29 |etDocume|ntBase()|
|00005620| 3b 0a 0a 20 20 20 20 2f | 2a 2a 0a 20 20 20 20 20 |;.. /|**. |
|00005630| 2a 20 47 65 74 73 20 74 | 68 65 20 62 61 73 65 20 |* Gets t|he base |
|00005640| 55 52 4c 2e 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |URL.. | *. |
|00005650| 20 2a 20 40 72 65 74 75 | 72 6e 20 20 74 68 65 20 | * @retu|rn the |
|00005660| 3c 63 6f 64 65 3e 55 52 | 4c 3c 2f 63 6f 64 65 3e |<code>UR|L</code>|
|00005670| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 65 74 2e 0a | of the |applet..|
|00005680| 20 20 20 20 20 2a 20 40 | 73 69 6e 63 65 20 20 20 | * @|since |
|00005690| 4a 44 4b 31 2e 30 0a 20 | 20 20 20 20 2a 2f 0a 20 |JDK1.0. | */. |
|000056a0| 20 20 20 55 52 4c 20 67 | 65 74 43 6f 64 65 42 61 | URL g|etCodeBa|
|000056b0| 73 65 28 29 3b 0a 0a 20 | 20 20 20 2f 2a 2a 0a 20 |se();.. | /**. |
|000056c0| 20 20 20 20 2a 20 52 65 | 74 75 72 6e 73 20 74 68 | * Re|turns th|
|000056d0| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 20 6e |e value |of the n|
|000056e0| 61 6d 65 64 20 70 61 72 | 61 6d 65 74 65 72 20 69 |amed par|ameter i|
|000056f0| 6e 20 74 68 65 20 48 54 | 4d 4c 20 74 61 67 2e 20 |n the HT|ML tag. |
|00005700| 46 6f 72 20 0a 20 20 20 | 20 20 2a 20 65 78 61 6d |For . | * exam|
|00005710| 70 6c 65 2c 20 69 66 20 | 61 6e 20 61 70 70 6c 65 |ple, if |an apple|
|00005720| 74 20 69 73 20 73 70 65 | 63 69 66 69 65 64 20 61 |t is spe|cified a|
|00005730| 73 20 0a 20 20 20 20 20 | 2a 20 3c 62 6c 6f 63 6b |s . |* <block|
|00005740| 71 75 6f 74 65 3e 3c 70 | 72 65 3e 0a 20 20 20 20 |quote><p|re>. |
|00005750| 20 2a 20 26 6c 74 3b 61 | 70 70 6c 65 74 20 63 6f | * <a|pplet co|
|00005760| 64 65 3d 22 43 6c 6f 63 | 6b 22 20 77 69 64 74 68 |de="Cloc|k" width|
|00005770| 3d 35 30 20 68 65 69 67 | 68 74 3d 35 30 26 67 74 |=50 heig|ht=50>|
|00005780| 3b 0a 20 20 20 20 20 2a | 20 26 6c 74 3b 70 61 72 |;. *| <par|
|00005790| 61 6d 20 6e 61 6d 65 3d | 43 6f 6c 6f 72 20 76 61 |am name=|Color va|
|000057a0| 6c 75 65 3d 22 62 6c 75 | 65 22 26 67 74 3b 0a 20 |lue="blu|e">. |
|000057b0| 20 20 20 20 2a 20 26 6c | 74 3b 2f 61 70 70 6c 65 | * &l|t;/apple|
|000057c0| 74 26 67 74 3b 0a 20 20 | 20 20 20 2a 20 3c 2f 70 |t>. | * </p|
|000057d0| 72 65 3e 3c 2f 62 6c 6f | 63 6b 71 75 6f 74 65 3e |re></blo|ckquote>|
|000057e0| 0a 20 20 20 20 20 2a 20 | 3c 70 3e 0a 20 20 20 20 |. * |<p>. |
|000057f0| 20 2a 20 74 68 65 6e 20 | 61 20 63 61 6c 6c 20 74 | * then |a call t|
|00005800| 6f 20 3c 63 6f 64 65 3e | 67 65 74 50 61 72 61 6d |o <code>|getParam|
|00005810| 65 74 65 72 28 22 43 6f | 6c 6f 72 22 29 3c 2f 63 |eter("Co|lor")</c|
|00005820| 6f 64 65 3e 20 72 65 74 | 75 72 6e 73 20 74 68 65 |ode> ret|urns the|
|00005830| 20 0a 20 20 20 20 20 2a | 20 76 61 6c 75 65 20 3c | . *| value <|
|00005840| 63 6f 64 65 3e 22 62 6c | 75 65 22 3c 2f 63 6f 64 |code>"bl|ue"</cod|
|00005850| 65 3e 2e 20 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |e>. . | *. |
|00005860| 20 2a 20 40 70 61 72 61 | 6d 20 20 20 6e 61 6d 65 | * @para|m name|
|00005870| 20 20 20 61 20 70 61 72 | 61 6d 65 74 65 72 20 6e | a par|ameter n|
|00005880| 61 6d 65 2e 0a 20 20 20 | 20 20 2a 20 40 72 65 74 |ame.. | * @ret|
|00005890| 75 72 6e 20 20 74 68 65 | 20 76 61 6c 75 65 20 6f |urn the| value o|
|000058a0| 66 20 74 68 65 20 6e 61 | 6d 65 64 20 70 61 72 61 |f the na|med para|
|000058b0| 6d 65 74 65 72 2e 0a 20 | 20 20 20 20 2a 20 40 73 |meter.. | * @s|
|000058c0| 69 6e 63 65 20 20 20 4a | 44 4b 31 2e 30 0a 20 20 |ince J|DK1.0. |
|000058d0| 20 20 20 2a 2f 0a 20 20 | 20 20 53 74 72 69 6e 67 | */. | String|
|000058e0| 20 67 65 74 50 61 72 61 | 6d 65 74 65 72 28 53 74 | getPara|meter(St|
|000058f0| 72 69 6e 67 20 6e 61 6d | 65 29 3b 0a 0a 20 20 20 |ring nam|e);.. |
|00005900| 20 2f 2a 2a 0a 20 20 20 | 20 20 2a 20 47 65 74 73 | /**. | * Gets|
|00005910| 20 61 20 68 61 6e 64 6c | 65 72 20 74 6f 20 74 68 | a handl|er to th|
|00005920| 65 20 61 70 70 6c 65 74 | 27 73 20 63 6f 6e 74 65 |e applet|'s conte|
|00005930| 78 74 2e 0a 20 20 20 20 | 20 2a 0a 20 20 20 20 20 |xt.. | *. |
|00005940| 2a 20 40 72 65 74 75 72 | 6e 20 20 74 68 65 20 61 |* @retur|n the a|
|00005950| 70 70 6c 65 74 27 73 20 | 63 6f 6e 74 65 78 74 2e |pplet's |context.|
|00005960| 0a 20 20 20 20 20 2a 20 | 40 73 69 6e 63 65 20 20 |. * |@since |
|00005970| 20 4a 44 4b 31 2e 30 0a | 20 20 20 20 20 2a 2f 0a | JDK1.0.| */.|
|00005980| 20 20 20 20 41 70 70 6c | 65 74 43 6f 6e 74 65 78 | Appl|etContex|
|00005990| 74 20 67 65 74 41 70 70 | 6c 65 74 43 6f 6e 74 65 |t getApp|letConte|
|000059a0| 78 74 28 29 3b 0a 0a 20 | 20 20 20 2f 2a 2a 0a 20 |xt();.. | /**. |
|000059b0| 20 20 20 20 2a 20 43 61 | 6c 6c 65 64 20 77 68 65 | * Ca|lled whe|
|000059c0| 6e 20 74 68 65 20 61 70 | 70 6c 65 74 20 77 61 6e |n the ap|plet wan|
|000059d0| 74 73 20 74 6f 20 62 65 | 20 72 65 73 69 7a 65 64 |ts to be| resized|
|000059e0| 2e 20 0a 20 20 20 20 20 | 2a 0a 20 20 20 20 20 2a |. . |*. *|
|000059f0| 20 40 70 61 72 61 6d 20 | 20 20 77 69 64 74 68 20 | @param | width |
|00005a00| 20 20 20 74 68 65 20 6e | 65 77 20 72 65 71 75 65 | the n|ew reque|
|00005a10| 73 74 65 64 20 77 69 64 | 74 68 20 66 6f 72 20 74 |sted wid|th for t|
|00005a20| 68 65 20 61 70 70 6c 65 | 74 2e 0a 20 20 20 20 20 |he apple|t.. |
|00005a30| 2a 20 40 70 61 72 61 6d | 20 20 20 68 65 69 67 68 |* @param| heigh|
|00005a40| 74 20 20 20 74 68 65 20 | 6e 65 77 20 72 65 71 75 |t the |new requ|
|00005a50| 65 73 74 65 64 20 68 65 | 69 67 68 74 20 66 6f 72 |ested he|ight for|
|00005a60| 20 74 68 65 20 61 70 70 | 6c 65 74 2e 0a 20 20 20 | the app|let.. |
|00005a70| 20 20 2a 20 40 73 69 6e | 63 65 20 20 20 4a 44 4b | * @sin|ce JDK|
|00005a80| 31 2e 30 0a 20 20 20 20 | 20 2a 2f 0a 20 20 20 20 |1.0. | */. |
|00005a90| 76 6f 69 64 20 61 70 70 | 6c 65 74 52 65 73 69 7a |void app|letResiz|
|00005aa0| 65 28 69 6e 74 20 77 69 | 64 74 68 2c 20 69 6e 74 |e(int wi|dth, int|
|00005ab0| 20 68 65 69 67 68 74 29 | 3b 0a 7d 0a 50 4b 03 04 | height)|;.}.PK..|
|00005ac0| 0a 00 00 00 00 00 0c 5a | 74 24 58 77 e8 3b f1 04 |.......Z|t$Xw.;..|
|00005ad0| 00 00 f1 04 00 00 1a 00 | 00 00 6a 61 76 61 2f 61 |........|..java/a|
|00005ae0| 70 70 6c 65 74 2f 41 75 | 64 69 6f 43 6c 69 70 2e |pplet/Au|dioClip.|
|00005af0| 6a 61 76 61 2f 2a 0a 20 | 2a 20 40 28 23 29 41 75 |java/*. |* @(#)Au|
|00005b00| 64 69 6f 43 6c 69 70 2e | 6a 61 76 61 09 31 2e 31 |dioClip.|java.1.1|
|00005b10| 31 20 39 38 2f 30 33 2f | 31 38 0a 20 2a 0a 20 2a |1 98/03/|18. *. *|
|00005b20| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 39 35 2d | Copyrig|ht 1995-|
|00005b30| 31 39 39 37 20 62 79 20 | 53 75 6e 20 4d 69 63 72 |1997 by |Sun Micr|
|00005b40| 6f 73 79 73 74 65 6d 73 | 2c 20 49 6e 63 2e 2c 0a |osystems|, Inc.,.|
|00005b50| 20 2a 20 39 30 31 20 53 | 61 6e 20 41 6e 74 6f 6e | * 901 S|an Anton|
|00005b60| 69 6f 20 52 6f 61 64 2c | 20 50 61 6c 6f 20 41 6c |io Road,| Palo Al|
|00005b70| 74 6f 2c 20 43 61 6c 69 | 66 6f 72 6e 69 61 2c 20 |to, Cali|fornia, |
|00005b80| 39 34 33 30 33 2c 20 55 | 2e 53 2e 41 2e 0a 20 2a |94303, U|.S.A.. *|
|00005b90| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|00005ba0| 72 76 65 64 2e 0a 20 2a | 0a 20 2a 20 54 68 69 73 |rved.. *|. * This|
|00005bb0| 20 73 6f 66 74 77 61 72 | 65 20 69 73 20 74 68 65 | softwar|e is the|
|00005bc0| 20 63 6f 6e 66 69 64 65 | 6e 74 69 61 6c 20 61 6e | confide|ntial an|
|00005bd0| 64 20 70 72 6f 70 72 69 | 65 74 61 72 79 20 69 6e |d propri|etary in|
|00005be0| 66 6f 72 6d 61 74 69 6f | 6e 0a 20 2a 20 6f 66 20 |formatio|n. * of |
|00005bf0| 53 75 6e 20 4d 69 63 72 | 6f 73 79 73 74 65 6d 73 |Sun Micr|osystems|
|00005c00| 2c 20 49 6e 63 2e 20 28 | 22 43 6f 6e 66 69 64 65 |, Inc. (|"Confide|
|00005c10| 6e 74 69 61 6c 20 49 6e | 66 6f 72 6d 61 74 69 6f |ntial In|formatio|
|00005c20| 6e 22 29 2e 20 20 59 6f | 75 0a 20 2a 20 73 68 61 |n"). Yo|u. * sha|
|00005c30| 6c 6c 20 6e 6f 74 20 64 | 69 73 63 6c 6f 73 65 20 |ll not d|isclose |
|00005c40| 73 75 63 68 20 43 6f 6e | 66 69 64 65 6e 74 69 61 |such Con|fidentia|
|00005c50| 6c 20 49 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 6e |l Inform|ation an|
|00005c60| 64 20 73 68 61 6c 6c 20 | 75 73 65 0a 20 2a 20 69 |d shall |use. * i|
|00005c70| 74 20 6f 6e 6c 79 20 69 | 6e 20 61 63 63 6f 72 64 |t only i|n accord|
|00005c80| 61 6e 63 65 20 77 69 74 | 68 20 74 68 65 20 74 65 |ance wit|h the te|
|00005c90| 72 6d 73 20 6f 66 20 74 | 68 65 20 6c 69 63 65 6e |rms of t|he licen|
|00005ca0| 73 65 20 61 67 72 65 65 | 6d 65 6e 74 0a 20 2a 20 |se agree|ment. * |
|00005cb0| 79 6f 75 20 65 6e 74 65 | 72 65 64 20 69 6e 74 6f |you ente|red into|
|00005cc0| 20 77 69 74 68 20 53 75 | 6e 2e 0a 20 2a 2f 0a 0a | with Su|n.. */..|
|00005cd0| 70 61 63 6b 61 67 65 20 | 6a 61 76 61 2e 61 70 70 |package |java.app|
|00005ce0| 6c 65 74 3b 0a 0a 2f 2a | 2a 0a 20 2a 20 54 68 65 |let;../*|*. * The|
|00005cf0| 20 3c 63 6f 64 65 3e 41 | 75 64 69 6f 43 6c 69 70 | <code>A|udioClip|
|00005d00| 3c 2f 63 6f 64 65 3e 20 | 69 6e 74 65 72 66 61 63 |</code> |interfac|
|00005d10| 65 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 61 62 |e is a s|imple ab|
|00005d20| 73 74 72 61 63 74 69 6f | 6e 20 66 6f 72 20 0a 20 |stractio|n for . |
|00005d30| 2a 20 70 6c 61 79 69 6e | 67 20 61 20 73 6f 75 6e |* playin|g a soun|
|00005d40| 64 20 63 6c 69 70 2e 20 | 4d 75 6c 74 69 70 6c 65 |d clip. |Multiple|
|00005d50| 20 3c 63 6f 64 65 3e 41 | 75 64 69 6f 43 6c 69 70 | <code>A|udioClip|
|00005d60| 3c 2f 63 6f 64 65 3e 20 | 69 74 65 6d 73 20 63 61 |</code> |items ca|
|00005d70| 6e 20 62 65 20 0a 20 2a | 20 70 6c 61 79 69 6e 67 |n be . *| playing|
|00005d80| 20 61 74 20 74 68 65 20 | 73 61 6d 65 20 74 69 6d | at the |same tim|
|00005d90| 65 2c 20 61 6e 64 20 74 | 68 65 20 72 65 73 75 6c |e, and t|he resul|
|00005da0| 74 69 6e 67 20 73 6f 75 | 6e 64 20 69 73 20 6d 69 |ting sou|nd is mi|
|00005db0| 78 65 64 20 0a 20 2a 20 | 74 6f 67 65 74 68 65 72 |xed . * |together|
|00005dc0| 20 74 6f 20 70 72 6f 64 | 75 63 65 20 61 20 63 6f | to prod|uce a co|
|00005dd0| 6d 70 6f 73 69 74 65 2e | 20 0a 20 2a 0a 20 2a 20 |mposite.| . *. * |
|00005de0| 40 61 75 74 68 6f 72 20 | 09 41 72 74 68 75 72 20 |@author |.Arthur |
|00005df0| 76 61 6e 20 48 6f 66 66 | 0a 20 2a 20 40 76 65 72 |van Hoff|. * @ver|
|00005e00| 73 69 6f 6e 20 20 20 20 | 20 31 2e 31 31 2c 20 30 |sion | 1.11, 0|
|00005e10| 33 2f 31 38 2f 39 38 0a | 20 2a 20 40 73 69 6e 63 |3/18/98.| * @sinc|
|00005e20| 65 20 20 20 20 20 20 20 | 4a 44 4b 31 2e 30 0a 20 |e |JDK1.0. |
|00005e30| 2a 2f 0a 70 75 62 6c 69 | 63 20 69 6e 74 65 72 66 |*/.publi|c interf|
|00005e40| 61 63 65 20 41 75 64 69 | 6f 43 6c 69 70 20 7b 0a |ace Audi|oClip {.|
|00005e50| 20 20 20 20 2f 2a 2a 0a | 20 20 20 20 20 2a 20 53 | /**.| * S|
|00005e60| 74 61 72 74 73 20 70 6c | 61 79 69 6e 67 20 74 68 |tarts pl|aying th|
|00005e70| 69 73 20 61 75 64 69 6f | 20 63 6c 69 70 2e 20 45 |is audio| clip. E|
|00005e80| 61 63 68 20 74 69 6d 65 | 20 74 68 69 73 20 6d 65 |ach time| this me|
|00005e90| 74 68 6f 64 20 69 73 20 | 63 61 6c 6c 65 64 2c 20 |thod is |called, |
|00005ea0| 0a 20 20 20 20 20 2a 20 | 74 68 65 20 63 6c 69 70 |. * |the clip|
|00005eb0| 20 69 73 20 72 65 73 74 | 61 72 74 65 64 20 66 72 | is rest|arted fr|
|00005ec0| 6f 6d 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |om the b|eginning|
|00005ed0| 2e 20 0a 20 20 20 20 20 | 2a 0a 20 20 20 20 20 2a |. . |*. *|
|00005ee0| 20 40 73 69 6e 63 65 20 | 20 20 4a 44 4b 31 2e 30 | @since | JDK1.0|
|00005ef0| 0a 20 20 20 20 20 2a 2f | 0a 20 20 20 20 76 6f 69 |. */|. voi|
|00005f00| 64 20 70 6c 61 79 28 29 | 3b 0a 0a 20 20 20 20 2f |d play()|;.. /|
|00005f10| 2a 2a 0a 20 20 20 20 20 | 2a 20 53 74 61 72 74 73 |**. |* Starts|
|00005f20| 20 70 6c 61 79 69 6e 67 | 20 74 68 69 73 20 61 75 | playing| this au|
|00005f30| 64 69 6f 20 63 6c 69 70 | 20 69 6e 20 61 20 6c 6f |dio clip| in a lo|
|00005f40| 6f 70 2e 20 0a 20 20 20 | 20 20 2a 0a 20 20 20 20 |op. . | *. |
|00005f50| 20 2a 20 40 73 69 6e 63 | 65 20 20 20 4a 44 4b 31 | * @sinc|e JDK1|
|00005f60| 2e 30 0a 20 20 20 20 20 | 2a 2f 0a 20 20 20 20 76 |.0. |*/. v|
|00005f70| 6f 69 64 20 6c 6f 6f 70 | 28 29 3b 0a 0a 20 20 20 |oid loop|();.. |
|00005f80| 20 2f 2a 2a 0a 20 20 20 | 20 20 2a 20 53 74 6f 70 | /**. | * Stop|
|00005f90| 73 20 70 6c 61 79 69 6e | 67 20 74 68 69 73 20 61 |s playin|g this a|
|00005fa0| 75 64 69 6f 20 63 6c 69 | 70 2e 20 0a 20 20 20 20 |udio cli|p. . |
|00005fb0| 20 2a 0a 20 20 20 20 20 | 2a 20 40 73 69 6e 63 65 | *. |* @since|
|00005fc0| 20 20 20 4a 44 4b 31 2e | 30 0a 20 20 20 20 20 2a | JDK1.|0. *|
|00005fd0| 2f 0a 20 20 20 20 76 6f | 69 64 20 73 74 6f 70 28 |/. vo|id stop(|
|00005fe0| 29 3b 0a 7d 0a 50 4b 03 | 04 0a 00 00 00 00 00 ea |);.}.PK.|........|
|00005ff0| ad 88 24 00 00 00 00 00 | 00 00 00 00 00 00 00 09 |..$.....|........|
|00006000| 00 00 00 6a 61 76 61 2f | 61 77 74 2f 50 4b 03 04 |...java/|awt/PK..|
|00006010| 0a 00 00 00 00 00 d2 ad | 88 24 00 00 00 00 00 00 |........|.$......|
|00006020| 00 00 00 00 00 00 17 00 | 00 00 6a 61 76 61 2f 61 |........|..java/a|
|00006030| 77 74 2f 61 63 63 65 73 | 73 69 62 69 6c 69 74 79 |wt/acces|sibility|
|00006040| 2f 50 4b 03 04 0a 00 00 | 00 00 00 0d 5a 74 24 e9 |/PK.....|....Zt$.|
|00006050| 91 50 a9 a3 07 00 00 a3 | 07 00 00 26 00 00 00 6a |.P......|...&...j|
|00006060| 61 76 61 2f 61 77 74 2f | 61 63 63 65 73 73 69 62 |ava/awt/|accessib|
|00006070| 69 6c 69 74 79 2f 41 63 | 63 65 73 73 69 62 6c 65 |ility/Ac|cessible|
|00006080| 2e 6a 61 76 61 2f 2a 0d | 0a 20 2a 20 40 28 23 29 |.java/*.|. * @(#)|
|00006090| 41 63 63 65 73 73 69 62 | 6c 65 2e 6a 61 76 61 09 |Accessib|le.java.|
|000060a0| 31 2e 32 37 20 39 38 2f | 30 32 2f 30 34 0d 0a 20 |1.27 98/|02/04.. |
|000060b0| 2a 20 0d 0a 20 2a 20 43 | 6f 70 79 72 69 67 68 74 |* .. * C|opyright|
|000060c0| 20 28 63 29 20 31 39 39 | 37 20 53 75 6e 20 4d 69 | (c) 199|7 Sun Mi|
|000060d0| 63 72 6f 73 79 73 74 65 | 6d 73 2c 20 49 6e 63 2e |crosyste|ms, Inc.|
|000060e0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000060f0| 72 76 65 64 2e 0d 0a 20 | 2a 20 0d 0a 20 2a 20 54 |rved... |* .. * T|
|00006100| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 69 73 20 |his soft|ware is |
|00006110| 74 68 65 20 63 6f 6e 66 | 69 64 65 6e 74 69 61 6c |the conf|idential|
|00006120| 20 61 6e 64 20 70 72 6f | 70 72 69 65 74 61 72 79 | and pro|prietary|
|00006130| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 66 20 | informa|tion of |
|00006140| 53 75 6e 0d 0a 20 2a 20 | 4d 69 63 72 6f 73 79 73 |Sun.. * |Microsys|
|00006150| 74 65 6d 73 2c 20 49 6e | 63 2e 20 28 22 43 6f 6e |tems, In|c. ("Con|
|00006160| 66 69 64 65 6e 74 69 61 | 6c 20 49 6e 66 6f 72 6d |fidentia|l Inform|
|00006170| 61 74 69 6f 6e 22 29 2e | 20 20 59 6f 75 20 73 68 |ation").| You sh|
|00006180| 61 6c 6c 20 6e 6f 74 0d | 0a 20 2a 20 64 69 73 63 |all not.|. * disc|
|00006190| 6c 6f 73 65 20 73 75 63 | 68 20 43 6f 6e 66 69 64 |lose suc|h Confid|
|000061a0| 65 6e 74 69 61 6c 20 49 | 6e 66 6f 72 6d 61 74 69 |ential I|nformati|
|000061b0| 6f 6e 20 61 6e 64 20 73 | 68 61 6c 6c 20 75 73 65 |on and s|hall use|
|000061c0| 20 69 74 20 6f 6e 6c 79 | 20 69 6e 0d 0a 20 2a 20 | it only| in.. * |
|000061d0| 61 63 63 6f 72 64 61 6e | 63 65 20 77 69 74 68 20 |accordan|ce with |
|000061e0| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|000061f0| 20 6c 69 63 65 6e 73 65 | 20 61 67 72 65 65 6d 65 | license| agreeme|
|00006200| 6e 74 20 79 6f 75 20 65 | 6e 74 65 72 65 64 20 69 |nt you e|ntered i|
|00006210| 6e 74 6f 0d 0a 20 2a 20 | 77 69 74 68 20 53 75 6e |nto.. * |with Sun|
|00006220| 2e 0d 0a 20 2a 20 0d 0a | 20 2a 20 53 55 4e 20 4d |... * ..| * SUN M|
|00006230| 41 4b 45 53 20 4e 4f 20 | 52 45 50 52 45 53 45 4e |AKES NO |REPRESEN|
|00006240| 54 41 54 49 4f 4e 53 20 | 4f 52 20 57 41 52 52 41 |TATIONS |OR WARRA|
|00006250| 4e 54 49 45 53 20 41 42 | 4f 55 54 20 54 48 45 20 |NTIES AB|OUT THE |
|00006260| 53 55 49 54 41 42 49 4c | 49 54 59 20 4f 46 20 54 |SUITABIL|ITY OF T|
|00006270| 48 45 0d 0a 20 2a 20 53 | 4f 46 54 57 41 52 45 2c |HE.. * S|OFTWARE,|
|00006280| 20 45 49 54 48 45 52 20 | 45 58 50 52 45 53 53 20 | EITHER |EXPRESS |
|00006290| 4f 52 20 49 4d 50 4c 49 | 45 44 2c 20 49 4e 43 4c |OR IMPLI|ED, INCL|
|000062a0| 55 44 49 4e 47 20 42 55 | 54 20 4e 4f 54 20 4c 49 |UDING BU|T NOT LI|
|000062b0| 4d 49 54 45 44 20 54 4f | 20 54 48 45 0d 0a 20 2a |MITED TO| THE.. *|
|000062c0| 20 49 4d 50 4c 49 45 44 | 20 57 41 52 52 41 4e 54 | IMPLIED| WARRANT|
|000062d0| 49 45 53 20 4f 46 20 4d | 45 52 43 48 41 4e 54 41 |IES OF M|ERCHANTA|
|000062e0| 42 49 4c 49 54 59 2c 20 | 46 49 54 4e 45 53 53 20 |BILITY, |FITNESS |
|000062f0| 46 4f 52 20 41 20 50 41 | 52 54 49 43 55 4c 41 52 |FOR A PA|RTICULAR|
|00006300| 0d 0a 20 2a 20 50 55 52 | 50 4f 53 45 2c 20 4f 52 |.. * PUR|POSE, OR|
|00006310| 20 4e 4f 4e 2d 49 4e 46 | 52 49 4e 47 45 4d 45 4e | NON-INF|RINGEMEN|
|00006320| 54 2e 20 53 55 4e 20 53 | 48 41 4c 4c 20 4e 4f 54 |T. SUN S|HALL NOT|
|00006330| 20 42 45 20 4c 49 41 42 | 4c 45 20 46 4f 52 20 41 | BE LIAB|LE FOR A|
|00006340| 4e 59 20 44 41 4d 41 47 | 45 53 0d 0a 20 2a 20 53 |NY DAMAG|ES.. * S|
|00006350| 55 46 46 45 52 45 44 20 | 42 59 20 4c 49 43 45 4e |UFFERED |BY LICEN|
|00006360| 53 45 45 20 41 53 20 41 | 20 52 45 53 55 4c 54 20 |SEE AS A| RESULT |
|00006370| 4f 46 20 55 53 49 4e 47 | 2c 20 4d 4f 44 49 46 59 |OF USING|, MODIFY|
|00006380| 49 4e 47 20 4f 52 20 44 | 49 53 54 52 49 42 55 54 |ING OR D|ISTRIBUT|
|00006390| 49 4e 47 0d 0a 20 2a 20 | 54 48 49 53 20 53 4f 46 |ING.. * |THIS SOF|
|000063a0| 54 57 41 52 45 20 4f 52 | 20 49 54 53 20 44 45 52 |TWARE OR| ITS DER|
|000063b0| 49 56 41 54 49 56 45 53 | 2e 0d 0a 20 2a 20 0d 0a |IVATIVES|... * ..|
|000063c0| 20 2a 2f 0d 0a 0d 0a 70 | 61 63 6b 61 67 65 20 6a | */....p|ackage j|
|000063d0| 61 76 61 2e 61 77 74 2e | 61 63 63 65 73 73 69 62 |ava.awt.|accessib|
|000063e0| 69 6c 69 74 79 3b 0d 0a | 0d 0a 2f 2a 2a 0d 0a 20 |ility;..|../**.. |
|000063f0| 2a 20 49 6e 74 65 72 66 | 61 63 65 20 41 63 63 65 |* Interf|ace Acce|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.