aspose file tools*
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 Spring in Action this week in the Spring 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set data format of JTextField ??