anyway, in this field i feel like a blind man trying to see with his hands ...
That is exactly how we feel since we don't know what you are trying to accomplish.
The default background color is WHITE. Are you trying to make the background color a light shade of blue? Then why don't you just hardcode the value you want the color to be?
What if somebody changes the background color to RED? Are you trying to change the color to a lighter/darker shade of red, or are you still trying to use a lighter/darker shade of blue.
Try your code with other background colors and see what happens. Then maybe you can give a more direct requirement because if you goal is simply to make the alternate color blue, then just hardcode the value and create the Color object once in the constructor of your class so you don't create new Color objects every time a cell is rendered.
Rob Camick wrote:What if somebody changes the background color to RED? Are you trying to change the color to a lighter/darker shade of red, or are you still trying to use a lighter/darker shade of blue.
For the former there are methods brighter() and darker() in Color.