user496789
user496789

Reputation: 107

Limiting Input Size ofTextField in j2me

I want to get only numerical inputs how can i do it using TextField

Upvotes: 1

Views: 335

Answers (2)

Sourabh
Sourabh

Reputation: 5170

TextField newTextField= new TextField ("Lines/Words:", "",3, TextField.NUMERIC);

Upvotes: 1

Gorkem Ercan
Gorkem Ercan

Reputation: 3226

You can use the TextField#setInputConstraints to limit the input.

Upvotes: 1

Related Questions