Well **** me. I always thought the constants in the Color class were all uppercase. Using setBackground should work. Did you get an error or did it just not work. If you got an error post it here. If...
Type: Posts; User: Junky
Well **** me. I always thought the constants in the Color class were all uppercase. Using setBackground should work. Did you get an error or did it just not work. If you got an error post it here. If...
Java is case sensitive.
possible loss of precision
The return value of the Math.sqrt method is a double. You are trying to assign it to an int. This means that if the method returns 1.5 and you cram it into an int it can...
If you are talking about 9 / 2 gives 4 and not 4.5 that is because you are doing integer division and the result will be an integer. If you want a floating point result then you will need to do...
It would be easier if your copied and pasted the full and exact error message separately and not embed what you think the error message says in the middle of your code so we have to hunt them down.
...