R
Roedy Green
In older versions of Java, the colours had lower case names such as
Color.white. Since these are static final constants, Sun later gave
them proper upper case names such as Color.WHITE. However, beware of
using the upper case names it you want to target earlier versions.
Your programs will explode in a glory of exceptions from the missing
support. The lower case names will work in any JDK.
Did Color.WHITE come in 1.4 or 1.5?
Color.white. Since these are static final constants, Sun later gave
them proper upper case names such as Color.WHITE. However, beware of
using the upper case names it you want to target earlier versions.
Your programs will explode in a glory of exceptions from the missing
support. The lower case names will work in any JDK.
Did Color.WHITE come in 1.4 or 1.5?