Coming from PHP, using CodeIgniter, where handling form validation was simple as pie; I'm now looking for something similar to my Java application. (not a web-application, that is)
Sure, I can create my own methods which achieves this, and run it on the submit button's actionPerformed
-event. However, that'd result in a lot of if(formElement.getText.isEmpty())
and so on.
Surely, there must be a better way to do this? Preferably without XML
or a big clumpsy framework. I've only found frameworks which does this for Java web-applications. Thanks.