• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert from getText() to int?

 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on a JTextField a user types a number as a string.

i want that number to be int.



i couldnt convert : inconvertiable types


what can i do?
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

try...
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
thank you man ^^
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!