JOptionPane check for int

Hi Experts!!
i would and JOptionPane to pop when my main run, check if the user input is an int. if yes save that input in some int variable and do something with. how do i achieve this?

thanks,

Komlaaa
komlaaaAsked:
Who is Participating?
 
ThummalaRaghuveerConnect With a Mentor Commented:
Try the eample in this like it is exactly what U want

http://leepoint.net/notes-java/30GUI/35containers/20dialogs/10joptionpane.html
0
All Courses

From novice to tech pro — start learning today.