I am trying to get the string from textfield and search it even if the string is partial.
public void jTable1(){
String a1=jTextField1.getText();
try{
String sql="select Instrument_ID, Name,Type,Version,Company,Status from Issue where Name like'"+a1+"'";
String Sql;
pst=conn.prepareStatement(sql);
rs=pst.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}
}