Link to home
Start Free TrialLog in
Avatar of chandanchoubey
chandanchoubey

asked on

How do I display integer into textField

I am using netbeans. I want something to be displayed in textField. I can do that if the result is a string, but if the result is integer, it gives me error.

jTextField.setText("result");

whats the code to display in int?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Bart Cremers
Bart Cremers
Flag of Belgium 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
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia 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
Avatar of chandanchoubey
chandanchoubey

ASKER

Thank you very much, it worked excellent!!