Here's the method I'm trying to use:
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html#getColor(java.lang.String)
And I would have suspected at least one of these would have returned something, but they all return null!
System.out.println(Color.getColor("Color.RED"));
System.out.println(Color.getColor("Color.red"));
System.out.println(Color.getColor("red"));
System.out.println(Color.getColor("RED"));
How am I using this incorrectly?! It is a bit late, but I really don't understand it
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html#getColor(java.lang.String)
And I would have suspected at least one of these would have returned something, but they all return null!
System.out.println(Color.getColor("Color.RED"));
System.out.println(Color.getColor("Color.red"));
System.out.println(Color.getColor("red"));
System.out.println(Color.getColor("RED"));
How am I using this incorrectly?! It is a bit late, but I really don't understand it
