*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8903

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.
 
Consider Paul's rocket mass heater.
 
subject: How to set data format of JTextField ??
 
Similar Threads
Display a set of data in graphics format.
formatting JTextField
How to create JTextField to enter IP address alone??
Putting data into JTextField
Tab Order