Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Starting out with Java. My task is to make an event scheduler and calendar using

ID: 3663276 • Letter: S

Question

Starting out with Java.

My task is to make an event scheduler and calendar using what I've learned from the book. I've done some research and found several options using things that are outside the scope of this book. I'm wondering how this can be done using NetBeans and the information within this book. Here are the requirements:

Make an application which allows the user to enter a date and time of an event, event notes and then schedule those events on a calendar. The user can then browse the calendar or search the calendar for specific events. For added complexity, allow the application to create reoccurrence events that reoccur every day, week, month, year etc

Thank you for the help

Explanation / Answer

By default, a program keeps running as long as its timer threads are running. You can terminate a timer thread in four ways.

The Reminder example uses the first scheme, invoking the cancel method from the timer task's run method. Making the timer thread a daemon wouldn't work, because the program needs to keep running until the timer's task executes. Sometimes, timer threads aren't the only threads that can prevent a program from exiting when expected. For example, if you use the AWT at all — even if only to make beeps — the AWT automatically creates a nondaemon thread that keeps the program alive. The following modification of Reminder adds beeping, which requires us to also add a call to the System.exit method to make the program exit.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote