Reputation: 107
I want to get only numerical inputs how can i do it using TextField
Upvotes: 1
Views: 335
Reputation: 5170
TextField newTextField= new TextField ("Lines/Words:", "",3, TextField.NUMERIC);
Upvotes: 1
Reputation: 3226
You can use the TextField#setInputConstraints to limit the input.
Upvotes: 1