• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set data format of JTextField ??

 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set data format of JTextField ??

Example :

I want to user can type input in TextField like XXX.XX only.

How to solve this problem?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by somkiat puisungnoen:
How to set data format of JTextField ??

Example :

I want to user can type input in TextField like XXX.XX only.

How to solve this problem?


Why dont you verify the data after the user has submitted?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to verify data when user type input in textfield, don't validate on submit button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic