Forums Register Login

Stuck on how to use FormattedFields in java for inserting dates

+Pie Number of slices to send: Send
I know the below code is supposed to format the FormattedTextField but it doesn't seem to do anything to the form (shown in the picture below). I was wanting, when the form loaded: the text field to look something like this

00/00/2014 - 00:00 am


Where the user is able to

- enter datelike information around the symbol separators ( / or : )

- But where the user could not remove these symbol separators



He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 582 times.
Similar Threads
Editor with JDialog
jpanel paint image using method like jpanel1.paint
SimpleDateFormatter shows wrong hour?
Cannot find ActionMappings or ActionFormBeans collection
Changing the timezone of a date, not only display
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:18:07.