Næste
Forrige
Oversigt
Java i netværk serie, Planche nr. 4
Kursus Indhold

Billeder

gif-filer og jepg-filer kan læses direkte via URL fra en applet.

Applet klassen har to getImage() metoder:

OBS! Only applets can use the Applet getImage() methods. Moreover, the Applet getImage() methods don't work until the applet has a full context (AppletContext). For this reason, these methods do not work if called in a constructor or in a statement that declares an instance variable. You should instead call getImage() from a method such as init().


© 1999 BLA*net - Leif E. Andersen, leander@blanet.dk