Masks in text fields
1 posts in topic
Flat View  Flat View

Posted By:   Ignacio_Iborra
Posted On:   Thursday, July 3, 2003 04:07 AM


I want to add a JTextField component to a JFrame to put a date on it. How can I make a mask to add to the text field to force the user to introduce the date in a given format (i.e. dd/mm/yyyy)?

Thank you in advance.

Re: Masks in text fields

Posted By:   Bahman_Barzideh  
Posted On:   Thursday, July 3, 2003 01:36 PM

If you are using JDK 1.4 or higher take a look at JFormattedTextField
About | Sitemap | Contact