[Java] HELP PLS OMG

Hindi

System.out.println(" ");
Dec 30, 2012
989
193
ok so basically the applet wont initialize

PLZ HELP ME ASAP @Quackster @Adil

E8mVZx7.png
 

Hindi

System.out.println(" ");
Dec 30, 2012
989
193
we need more code.
Code:
import java.applet.*;
import java.awt.*;

public class demo extends Applet {
            public void paint(Graphics g)
        {
            //g.drawOval(10, 20, 200, 400);
            //g.fillOval(10, 20, 200, 400);
            g.drawArc(40, 50, 90, 50, 30, 60);
        }
 
}

Surely this won't work, If I add in the init() method, It works. but yeah In my textbook they don't show init() method.
 

Users who are viewing this thread

Top