This is most probably a problem of missing curly bracket or missing semicolon:
the error message you get refers to some missing (understand incorrect) class
(or interface
, or enum
) declaration.
If you were to post the whole content of the class declaration enclosing that method you showed us, I'm pretty sure we could find that missing character in a matter of seconds ;)
Also, since I'm at it, I prefer to use Color.GREEN
(and Color.BLACK
, Color.RED
, etc.) instead of Color.green
, because these aliases respect the convention that states that constants must be upper-case.