|
big OOPS! PERSIST is the wrong value; COMMIT is the proper way of handling this. Using PERSIST effectively short circuits the formatter (bad idea).
The code was changed to:
field.setFocusLostBehavior(JFormattedTextField.COM MIT);
And the behavior is what I required by default.
Still, let me know if anyone is aware of other JFormattedTextFields properties I should be concerned with . Thanks.
|