I have this problem with graphics, actually I know it's with my compiler... If I try to set the background of a button or something I get erros that's not even in my code..
I have this:
btnCalc.setBackground(Color.blue);
and I get theses errors
//g is already defined
Graphics g = new Graphics();
//Graphics is abstract
Graphics g = new Graphics();
//variable yellow
g2d.setBackground(Color.yellow);
The weird thing is, I don't have those statements anywhere in my code. So does anyone know what's going on?
NOTE: This is not an applet, this is a JFrame.