Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JFormattedtextField - formatting user input

Reply
Thread Tools

JFormattedtextField - formatting user input

 
 
wolfgang wagner
Guest
Posts: n/a
 
      07-09-2003
hi

im trying to restrict user input in a JFormattedTextField. the user should
only be allowed to input numbers in a special format. for this purpose i use
a MaskFormatter. this works perfect, but my problem is that if i set a
MaskFormatter to ###.## $ it only accepts a three dot 2 digit number. but
what to do if i also want to allow ##.# $ ???? schould i add another
MaskFormatter to the TextFiled? or is there another possibility?? an example
would be helpful.

thx in advance

wolfgang


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JFormattedTextField.AbstractFormatter VisionSet Java 0 12-24-2004 02:29 AM
InputVerifier and JFormattedTextField Problem :( Steve Webb Java 4 04-29-2004 08:12 PM
Caret Positioning in a JFormattedTextField ? Webby Java 1 04-21-2004 07:06 PM
Problem with formatting in JFormattedTextField Pawel Poplawski Java 0 12-03-2003 10:51 PM
Netbeans form editor and JFormattedTextField Mack Attack Java 1 09-15-2003 04:36 PM



Advertisments