I am trying to catch the users input for binary validation.
1) The user will attempt to edit an existing binary string in a JTextField "00001111"
2) If the user enters any text other than a '1' or a '0', I want there input to be rejected and the original string remain in the TextField
3) If the user inputs a '1' or a '0'..it will replace the bit as requested
I have a Document listener on thh Field, limiting the amount of binary bits in my string.
I need help on Java Text Validation??