Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JFormattedTextField constructor

Status
Not open for further replies.

rvy2k

Programmer
Jun 29, 2001
39
0
0
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top