How to check if entered text in textfield are all blank characters (spaces)
843806May 24 2009 — edited May 24 2009I have a JFrame form class in which I enter data via two text fields and the type of characters that go in those fields are String. So the user can enter any combination of characters but I don't want them to be able to enter all blanks (spaces), because if I want someone to enter his name he must enter name consisting of at least one letter character.
Can someone explain to me how to achieve this, or to be more precise, how to check all entered characters in the text field and display message if all entered are spaces?
Thank You.