• Post Reply Bookmark Topic Watch Topic
  • New Topic

Edit Mask  RSS feed

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me how to set up an edit mask for a field? Suppose I
had a JDialog with a field to enter a date?

Thanks,
Barry
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah yes, Swing. Look up JFormattedTextField (since 1.4).
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's move this over to the newly renamed Swing/AWT/SWT/JFace forum for any further discussion.
 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best way of having a field to enter a date? Should you just
have a text field to size 10 and then format it after entry?

thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!