i can't get greenfoot to accept the color i'm importing
The code below is the code i'm using
if someone has a different code layout which works, could you possibly paste the code in the comment part
thanks
ps. this would help me with my course work
import greenfoot.*;
import java.awt.Color;
public class Counter extends Actor
{
private int value= 0;
public void act(){
setImage(new GreenfootImage("Score: "+value, 20, Color.WHITE, Color.BLUE));
if(value==100) {
Won();
Greenfoot.stop();
}
}
public void Value(int newValue)
{
value++;
}
public void Won() {
Won won = new Won();
Greenfoot.setWorld(won);
}
}