Java validations

+1 dasan ikmal · January 4, 2015
hey all,
do you guys know how to validate a text in JTextField(i mean like whether its a number or not....)??? please help me out......

Post a Reply

Replies

Oldest  Newest  Rating
0 Branislav Lazic · January 4, 2015
You could use this utility class: https://github.com/BranislavLazic/SwingTutorials/blob/master/src/JNumberTextField.java It will allow only insertion of numbers, "-" and "." characters.
  • 1

Java / Android Development

107,171 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator