Find mistakes:
import java.applet.*;
import java. .*
public class Main extends JApplet
public paint (Graphics g) {
g.drawString ("Welcome in Java Applet!" , 40, 20);
}
}
import java.awt.*;
import javax.swing.JApplet;
public class Main extends JApplet {
public void paint(Graphics g) {
g.drawString("Welcome in Java Applet!", 40, 20);
}
}
Comments
Leave a comment