当您单击搜索按钮时,没有任何反应
public class SearchAktion implements ActionListener{
@Override
public void actionPerformed(ActionEvent e) {
conn = DBConnector.getConnection();
String search = searchJTField.getText();
String sql = " SELECT * FROM car WHERE model LIKE '%"+search+"%'";
try {
//conn = DBConnector.getConnection();
state = conn.prepareStatement(sql);
state.execute();
refreshTable();
resetForm();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}// end search action