How would one go about restricting input in JOptionPane?

edited March 2017 in How To...

I was wondering how I could make it so that JOptionPane uses only the first character inputted, even if multiple were used. Eg.: if user inputs "Christmas", only the letter "C" is actually inputted and the rest is not counted. Thanks!

Sign In or Register to comment.