@Override
    protected boolean validationCriteria(JComponent c) { 
        
        if (c instanceof JTextField){
            String test = ((JTextField)c).getText();
            if (test == null || test.equals(""))
                return false;
            return true;
        }
        
        if (c instanceof JComboBox) {
            String test = (String) ((JComboBox)c).getSelectedItem();
            if (test == null || test.equals(""))
                return false;
            return true;
        }
        
        //If not JTextField or JComboBox - return false, as in fail save
        return false;
    }