Add some logic to allow those characters in addition to the digits.
Type: Posts; User: Norm
Add some logic to allow those characters in addition to the digits.
Look at how to use the document model used by the JTextField class.
I don't think there is a way to restrict input with the JOptionPane class's methods.
There is a way by using the model behind a JTextField class.