It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Color cannot be resolved?

Color cannot be resolved?

Postby Novice_Programmer on Thu Feb 01, 2007 5:44 am

Hi, im new to java and ive just experienced my first big problem.
I have a the following code:

CircleFigure.create();
int radius = 25;
CircleFigure.setColour(Color.red);
CircleFigure.setRadius(radius);

I want to create a circle. Everything works except for Color. It gives the error "Color cannot be resolved". What does that mean? How do I fix this?

Thanks.
User avatar
Novice_Programmer
 
Posts: 0
Joined: Thu Feb 01, 2007 5:35 am

Who is online

Users browsing this forum: No registered users and 0 guests