Source code of search operation in java gui.
try{
if(jTextField_Email.getText().equals("")){
JOptionPane.showMessageDialog(null, "Please Search With Email..");
}else{
String sql = "select * from user where email = '"+jTextField_Email.getText()+"' ";
pst = con.prepareStatement(sql);
rs = pst.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}
}catch(SQLException e){
}
Be First to Comment