'XXXX' does not name a type

What has this got to do with Arduino?

Are you trying to compile Processing/Java code using the Arduino IDE?

Clue:import java.awt.*;