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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top