public void startAlarms() throws InterruptedException {
        a.setHigh(Integer.parseInt(maxValue.getSelectedItem().toString()));
        a.setLow(Integer.parseInt(minValue.getSelectedItem().toString()));
        dataShare.setAlarm(a);
        int temp = dataShare.getBPM();
        if (temp > 0) {
            a.check(temp);
            if (a.active()) {
                alterText(dataShare.genTime(temp));
                alterText(a.info());
                a.deactivate();
            }
        }
    }