Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Source for fully functional DateDocument

 
Anand Kaimal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic