View Single Post
  #2 (permalink)  
Old 01-21-2008, 08:55 PM
teracomp teracomp is offline
Member
 
Join Date: Jan 2008
Posts: 3
teracomp is on a distinguished road
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.
Reply With Quote