Reputation: 5354
I am using a JFormattedTextField
in combination with a DateFormatter
. I've seen examples of this kind of text field using MaskFormatter
in which a user can type in values and overwrite existing ones (e.g. the placeholder characters) without having to erase them manually. Is it possible to do the same thing with a DateFormatter
? For example, I want to use 00:00:00
as the placeholder string, and the time should be in the format HH:mm:ss
.
Upvotes: 1
Views: 303
Reputation: 109815
JSpinner is better and nicer JComponent for Date instance, than JFormattedTextField, I think that more confortable and intuitive
Upvotes: 1