You are here: GSI Wiki>Java Web>JavaProgramming>FirstApplet (2003-11-28, christo)EditAttach

Applets

Applets sind Java-Programme, die in HTML-Seiten eingebunden sind (siehe bspw. map24.de).

Alle Applets werden von der Klasse %JAVADOC{java.applet.Applet}% abgeleitet.

import java.applet.Applet;
import java.awt.Graphics;

public class HelloWorld extends Applet {
        public void paint(Graphics g) {
                g.drawString("Hello world!", 50, 25);
        }
}

-- ChristopherHuhn - 13 Nov 2003
Topic revision: r5 - 2003-11-28, christo
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)