package awt;
import java.awt.*;
public class GraphicPanel extends Panel {
GraphicPanel() {
setBackground(Color.black);
}
public void paint(Graphics g) {
g.setColor(new Color(0,255,0));
g.setFont(new Font("Helvetical", Font.PLAIN,14));
g.drawString("Pusyy Cat Program!", 300, 100);
g.drawOval(150,200,50,50);
g.drawOval(200,200,30,30);
g.setColor(new Color(1.0f,0,0));
g.fillRect(30,100,150,10);
}
public static void main(String[] args) {
Frame f = new Frame("Pussy Cat Window");
GraphicPanel gp = new GraphicPanel();
f.add(gp);
f.setSize(300,300);
f.setVisible(true);
}
}
//Here is my problem in java using awt.........please help me to create a simple Mouse(animal) using awt..Thnx...............