What\'s the real difference between definitions for setXxx(Color.red) and setXxx(Color.RED)?
I\'ve found the following explanation on the w
Java defined some color constant names in lowercase, which violated the naming rule of using uppercase for constants. Heres the code for the color red:
public final static Color red = new Color(255, 0, 0);
Later on they made the same colors but in uppercase.
public final static Color RED = red;
So there is really no difference. They are all the same, as you can tell by the code.
public final static Color red = new Color(255, 0, 0);
public final static Color RED = red;
Hope this helps!