private void IDSResultsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IDSResultsButtonActionPerformed
    int count;
    String Message, Message_MALICIOUS_COMMAND = "", Message_MALICIOUS_TRANSACTION = "";

    count = 0;
    while (jTPFile.getText().toUpperCase().indexOf("MALICIOUS_COMMAND") != -1) {
        count++;
    }
    if (count > 0) {
        Message_MALICIOUS_COMMAND = "The IDS detected " + count + " Malicious Commands\n";
    }
    count = 0;
    while (jTPFile.getText().toUpperCase().indexOf("MALICIOUS_TRANSACTION") != -1) {
        count++;
    }
    if (count > 0) {
        Message_MALICIOUS_TRANSACTION = "The IDS detected " + count + " Malicious Transactions\n";
    }
    Message = Message_MALICIOUS_COMMAND + Message_MALICIOUS_TRANSACTION;
    if (Message.contentEquals("")) {
        Message = "Nothing unusual was detected by the IDS";
    }
    JOptionPane.showMessageDialog(new JFrame(), Message, "IDS results", JOptionPane.INFORMATION_MESSAGE);
}