Hi everybody,
I have the following code:
SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"
;
format.setLenient(false);
JFormattedTextField ftf = new JFormattedTextField(format);
Now I am trying to write a class that extends JFormattedTextField and translate the code above.
Unfortunately I cannot call JFormattedTextField's super(Format format) because I cannot instantiate the SimpleDateFormat and I couldn't find the mutator to set the format.
What can I do?
Thanks.
I have the following code:
SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"
format.setLenient(false);
JFormattedTextField ftf = new JFormattedTextField(format);
Now I am trying to write a class that extends JFormattedTextField and translate the code above.
Unfortunately I cannot call JFormattedTextField's super(Format format) because I cannot instantiate the SimpleDateFormat and I couldn't find the mutator to set the format.
What can I do?
Thanks.