| Reply | « Previous Thread | Next Thread » |
|
In MIDP 1.0 how can I restrict a TextBox to accept numbers with decimals in them?
If I specify TextField.NUMERIC as the constraint then the user can only enter in numbers, i.e. I can't get the TextBox to recognize a decimal point. I'm thinking that I should use TextField.CONSTRAINT_MASK and the setConstraints() method but I can't figure out the format of the input field for the mask. |
|
MIDP 2.0 has added TextField.DECIMAL, so I assume that it can't be done with the MIDP 1.0 options.
|
| stevecotton |
| View Public Profile |
| Find all posts by stevecotton |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|