This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to set data format of JTextField ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to set data format of JTextField ??" Watch "How to set data format of JTextField ??" New topic
Author

How to set data format of JTextField ??

somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
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?


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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?


Groovy
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I want to verify data when user type input in textfield, don't validate on submit button.
 
jQuery in Action, 2nd edition
 
subject: How to set data format of JTextField ??