Question

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

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top