Ok now suppose i have some code and there is a point where the user is asked to input some value into showInputDialog...and then the user must input a String value, but if the user inputs an integer value, the program crashes...please help me and explain me how can i check for the String/Integer value and display a message like "Invalid Input" instead of the program crashing. Thanks.
smokin745
0
Newbie Poster
Recommended Answers
Jump to PostPlease give us some code. It is a lot easier then.
All 4 Replies
Cort3z
0
Junior Poster in Training
BestJewSinceJC
700
Posting Maven
denni2727
0
Newbie Poster
Cort3z
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.