I am using NetBeans Design GUI interface. I want a jFormattedTextField to turn red on error. I don't see a way to do it.
Thanks in advance.
What I have tried:
I changed the default border for the field to Etched, and under that, I added code to turn the highlite on:
if rm[1] {setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(255, 0, 0), null));}
else
{setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 153, 153), null));};
Except the stupid editor adds in the last bit from null on a second time. And since it is protected code, you can't change it.