aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Source for fully functional DateDocument Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Source for fully functional DateDocument" Watch "Source for fully functional DateDocument" New topic

Source for fully functional DateDocument

Anand Kaimal

Joined: Sep 27, 2000
Posts: 21
Guys, here is the source for a fully functional date document
to use it with a JTextField do this:
SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy", Locale.US);
JTextField1.setDocument(new DateDocument(JTextField1, df));
Source code

ps: when posting source code, please use the
opening and closing [ code ] tage (without the spaces)
thanks for your cooperation.
- satya

[This message has been edited by Madhav Lakkapragada (edited August 15, 2001).]

I agree. Here's the link:
subject: Source for fully functional DateDocument
Similar Threads
NX:Formatted textField
A Special TextEdit control for Date
Editor with JDialog
Here is the source code for a fully DateDocument
Null Value in JTable