This is my code, but I don’t understand how to put the results of the entire search in one text field.
private void btnSearchActionPerformed(java.awt.event.ActionEvent evt)
{
String SearchProduct ;
DBConnector dbcon = new DBConnector();
dbcon.connect();
if (dbcon.isProductExists) {
msg.showMessageDialog(this,"Search Successful","Search Status",1);
txtSearchResults.setText()
}
else {
msg.showMessageDialog(this,"no results found","Search Status",1);
}
}
Is it possible? if this is not possible, can you suggest anything else?
user3949394
source
share