Link to home
Start Free TrialLog in
Avatar of ehmf
ehmf

asked on

Converting data inside JTextField to interger

hi all

I want to convert what is inside a JTextField to integer. I use the following way :

int blck = Integer.parseInt(readTextField.toString());

but it does not work and it fies the exception handling when use it.

can some one tell me how can I do it and what classes I need to import ??
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)