Hey JPF members,
I'm a beginner in java trying to get a Red Oval to appear on screen. I'm also using a java book but im stuck with this problem. Any solution to this problem?
As you may know I'm trying to get a red oval to appear using my guy.java source file.
heres my code:
public class Guy extends java.applet.Applet {
/** initialization method that will be called after
* applet is loaded into the browser
*/
public void init() {
//
}
public void paint(java.awt.Graphics g){
g.drawOval(200,200,100,100);
g.fillOval(400, 300, 75, 288);
g.setColor(java.awt.Color.RED);
}
}