Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  applet
Language: JAVA
Code:
import java.awt.*;
import java.applet.*;
/* <applet> code="applet" width=200 height=100> </applet> */
public class applet extends Applet
{
Color c =new Color(250,10,10);
public void paint(Graphics g)
{
 g.setColor(c.yellow);
 g.fillOval(50,50,150,150);
 g.setColor(c.black);
 g.fillOval(80,80,20,20);
 g.setColor(c.black);
 g.fillOval(150,80,20,20);
 g.drawArc(95,120,50,50,-140,100);
 g.drawLine(120,90,120,150);
 }
}
Comments: