@@ -0,0 +1,2144 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage MainClasses;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Timer;%0Aimport java.util.TimerTask;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport javafx.application.Platform;%0Aimport javafx.stage.Stage;%0Aimport rs_project.frmAddSubjectEvent;%0Aimport rs_project.frmEventMessage;%0A%0A/**%0A *%0A * @author %D0%95%D0%B3%D0%BE%D1%80%0A */%0Apublic final class EventTimer %7B%0A    %0A    private static void CreateTimer(SubjectEvent event) %7B%0A        Timer timer = new Timer();%0A        %0A        //TimerTask task;%0A        timer.schedule(new TimerTask() %7B%0A            %0A            @Override%0A            public void run() %7B%0A                Platform.runLater(() -%3E %7B%0A                //System.out.println(event.getHeader() + %22%5Cn%5Ct%22 + event.getContent());%0A                //%D1%84%D0%BE%D1%80%D0%BC%D0%B0, %D0%BF%D1%80%D0%B8 %D1%81%D1%80%D0%B0%D0%B1%D0%B0%D1%82%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%B8 %D1%82%D0%B0%D0%B9%D0%BC%D0%B5%D1%80%D0%B0%0A                WatchEvent(event);%0A                //timer.cancel();%0A                //Scene sc = new Scene(lbl);%0A                //Stage ps = new Stage();%0A                //ps.setScene(sc);%0A                //ps.show();%0A                %7D);%0A%0A            %7D%0A//        %7D, event.getTimeList().get(event.getTimeList().size() - 1).getDate());%0A        %7D, event.getTime().getDate());%0A    %0A        %0A        //timer.schedule(task, event.getTimeList().get(event.getTimeList().size() - 1).getDate());%0A    %7D%0A    %0A    private static void WatchEvent(SubjectEvent event)%7B%0A        frmEventMessage message = new frmEventMessage();%0A        message.SetEventName(event.getHeader());%0A        message.SetEventContent(event.getContent());%0A        try %7B%0A            message.start(new Stage());%0A        %7D catch (Exception ex) %7B%0A            Logger.getLogger(frmAddSubjectEvent.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A    %7D%0A    %0A    public static void StartTimersOnProgramLoad(ArrayList%3CSubject%3E subjectList) %7B%0A        for (Subject subject : subjectList) %7B%0A            for (SubjectEvent event : subject.getEventList()) %7B%0A                CreateTimer(event);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Add special timer class