I am trying to fill the oval on mouseclick but its not working. Please let me know where i went wrong
public DrawCircle()
{
image.drawOval(0,0,109,99);
setImage(image);
}
public void act()
{
if(Greenfoot.mouseClicked(image))
{
image.setColor(java.awt.Color.RED);
//image.drawOval(10,10,109,99);
image.fillOval(0,0,109,99);
setImage(image);
}
}
