Right now my program accepts an input, and formats it into a Date. But I want it to call a method whenever that date is reached. How could I do this without the use of any libraries like Quartz?
Code I have for the input:
                Date date = new Date();
                String inputDate;
                month = (String) comboBoxMonth.getSelectedItem();
                day = Integer.parseInt((String) comboBoxDay.getSelectedItem());
                hours = Integer.parseInt((String) comboBoxTimeH.getSelectedItem());
                minutes = Integer.parseInt((String) comboBoxTimeM.getSelectedItem());
                try {
                    //Month/Day/Year Hour:minute:second
                    inputDate = month + "/" + day + "/" + year + " " + hours + ":" + minutes;
                    date = formatter.parse(inputDate);
                } catch (ParseException e) {
                    e.printStackTrace();
                }
 
     
     
     
    