title: Javafx: Multi Threading a reminder notification
body: <p>I am creating a system that notify user of appointment time. My Question: <strong>Is it good to create a Thread when ever the user add a new appointment that is going to be listening to when ever the appointment date is and display a notification by the right bottom corner</strong>  </p>
  
  <p>My Code</p>
  
  <pre><code>DateFormat inFormat = new SimpleDateFormat("dd/MM/yyyy hh:mm a");
  DateFormat outFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm");
  Timer timer = new Timer();
  
  private void appointmentNotification() throws ParseException {
      //Convert 12hour time to 24hour
      String dateValues = date + " " + time;
      Date dateParse = inFormat.parse(dateValues);
  
      timer.schedule(new TimerTask() {
          @Override
          public void run() {
              Notifications noti = Notifications.create();
              noti.text("Doctor "+doc+" has an Appointment with Patient "+patient);
              noti.title("Appointment");
              noti.hideAfter(Duration.seconds(10));
              noti.position(Pos.BOTTOM_RIGHT);
  
              Platform.runLater(new Runnable() {
                  @Override
                  public void run() {
                      noti.show();
                  }
              });
          }
      }, outFormat.parse(outFormat.format(dateParse)));
  }
  </code></pre>
  
  <p>I imagine if the user added 50 appointments, There will be 50 Thread running</p>