hi,
I had the same problem.
actually, I got this error at g.setColor(blabla) function. absolutely wird.
what I did was remove JRE and JSDK and reinstall it again.
since it happend to me NUMOROUS times, I also had to do this process of reinstalling more than once until it worked right.
what can I say...
Regards,
Adrian Korsuas