Java Applet Temelleri : Applet İskeleti

advertisement
Applet İskeleti
Applet İskeleti
import java.awt.*;
import java.applet.*;
public class Iki extends Applet {
String Mesaj;
public void init() {
setBackground(Color.yellow);
setForeground(Color.red);
Mesaj=" Init Icerisinde ";
}
public void start() {
Mesaj+=" Start Icerisinde ";
}
public void stop() {
}
public void destroy() {
}
public void paint(Graphics Ekranimiz) {
Mesaj+=" Paint Icerisinde ";
Ekranimiz.drawString(Mesaj, 10, 30);
}
public void update(Graphics Ekran) {
}
}
www.dijitalders.com
Applet İskeleti
1
Download