public String constructAMessage(javax.swing.JLabel bpmValueElement, javax.swing.JLabel minValueElement, javax.swing.JLabel maxValueElement, 
                                    javax.swing.JScrollPane alarmValueElement) {
        String str="";
        int bpm = Integer.parseInt(bpmValueElement.getText());
        int min = Integer.parseInt(minValueElement.getText());
        int max = Integer.parseInt(maxValueElement.getText());
        
        
        if( bpm > max || bpm < min) {
            str = captureTime() + " ALARM TRIGGERED!";
        }
        return str;
    }