This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 8904

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 ??
 
Similar Threads
Putting data into JTextField
Tab Order
Display a set of data in graphics format.
formatting JTextField
How to create JTextField to enter IP address alone??