changing string text color in Java
JTextArea textArea = new JTextArea();
textArea.setBorder(BorderFactory.createEmptyBorder(2, 0, 2, 0));
The string contained in the variable answer does not display black, but still shows up as gray. I was considering wrapping the string in a font object and managing its color that way but I'm not sure if that would work because I tried this before to change its size and that didn't work.
thanks in advance for any suggestions!