Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JFormattedTextField

  Asked By: Muaz    Date: Jun 17    Category: Java    Views: 488
  

How can I prevent characters entering the textField on a JSpinner. I
tried using NumberFormatter but, it stops the Delete button from
working properly.
I also tried writing my own editor but that doesn't work either!
I have also wrote an IntegerDocument but it onlt works for
JTextFields but not JFormattedTextField

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Alexander Bouchard     Answered On: Jun 17

How do I, in a JFormattedTextField with date format, control bad dates,
Format (dd-mm-yyyy)

Don't want dates like 45-56-2004

 
Didn't find what you were looking for? Find more on JFormattedTextField Or get search suggestion and latest updates.