private void btnOkayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOkayActionPerformed
        checkInput();
        if(choose.getSelectedDate().get(Calendar.DAY_OF_YEAR) == alarmStart.get(Calendar.DAY_OF_YEAR)
                && choose.getSelectedDate().get(Calendar.YEAR) == alarmStart.get(Calendar.YEAR)){
            boolean changedSomthing = false;
            if(time.getStartHour() < alarmStart.get(Calendar.HOUR_OF_DAY)) {
                time.setStartHour(alarmStart.get(Calendar.HOUR_OF_DAY));
                changedSomthing = true;
            }
            if(time.getStartMinute()< alarmStart.get(Calendar.MINUTE)) {
                time.setStartMinute(alarmStart.get(Calendar.MINUTE));
                changedSomthing = true;
            }
            if(changedSomthing){
                JOptionPane.showMessageDialog(parent, "Start tiden er blevet ændret fordi den var sat til før alarm kaldet kom.");
            }
        }
        notifyObservers();
        parent.removeTimePicker();
    }//GEN-LAST:event_btnOkayActionPerformed