Hi, I was wondering if there is a way to convert a string into a color object.
JTextArea text;
String blue = "blue";
Color col = Color.getColor(blue);
text.setBackground(col);
I found that example online but the Color object col returns a null value. Any ideas?