I'm currently trying to build a Swing-based editor that is using tables to render and edit properties. The properties are of a constrained data type. Unlike the regular editor (with collections), which displays invalid property values in red, using "set" with an invalid value will just save it, with no feedback whatsoever. Is there a way to check whether the string constraint is satisified before or after saving, so the editor won't save invalid values or will render them in red? I'm attaching screenshots of my getter/setter code and the resulting editor for reference.