Color.WHITE gotcha

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top