You ought to use prepared statements, since you declared them
Just some suggestion:
your connection assignment can be outside the if statements because all connections are the same.
for sql, the where clause is specific to the if condition, the stuff before that is already know before hand as if all records are selected (or no where clause)
The rs.xxx and JTable's setXXX can be outside the if statement since all conditions will do it
If I were to inherit the task of supporting your code and it was eating exceptions without either handling them or reporting them, you'd better hope that you can run really, really fast.
"Disappointing" and "Utterly Horrible" are not equal.