I want to determine if a form containing: JTextField, JDatePicker, JComboBox, JSpinner, does not contain empty fields. I have several forms with different fields that I would like to be evaluated with a common method without managing the order of the fields to work with any sequence of fields.
My purpose would be to create a method like:
if method (field1, field2, field3) {
...
}
if method (field4, field5) {
...
}
I don't want to do multiple methods for multiple forms.