I have a text Field where the user enter a world to search a JTable when the user click a button called btnSearch.
every time I try to perform a search nothing happen and an Exception is thrown (see error below) when debug it show that the error occur at the if statement condition. could you please explain what I should do to fix the problem
the Error:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:com.mysql.jdbc.StringUtils.isEmptyOrWhitespaceOnly(Ljava/lang/String;)Z
The Code behind the search button:
btnSearch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
String entry =txtSearchData.getText();
if (StringUtils.isEmptyOrWhitespaceOnly(entry)){
}else{
}
txtSearchData.setText(" ");
}
});