Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get Integer from JTextField

843805Nov 9 2005 — edited Nov 9 2005
Hi

I have a textfield which returns numbers(integer/long)
i can covert the string to integer using Integer.parseInt()

but how do i get a long no that is in the textfield.
typecasting int to long will not work...because first of all parsing to int does not take place because no is out of integer range...

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2005
Added on Nov 9 2005
3 comments
145 views