for one thing you have a space between the C and the L in your setDefaultCloseOperation so that's probably the first exception.... since its sql im guessing you have a database of passwords or...