Swing validation

I have a frame and an entity class.

Where do I put the validation of the input fields?

In the form inside the submit button listener?

Create another class to validate the fields and pass a bean as a parameter to be validated?

Add validation methods in my entity class?

what do you suggest?

Thanks

Marcos

[352 byte] By [Sokrama] at [2007-11-27 8:28:14]
# 1
Here's one way: http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#inputVerification
dwga at 2007-7-12 20:18:08 > top of Java-index,Desktop,Core GUI APIs...