Java Reference
In-Depth Information
Lab 16.5: A Reminder Application
You will write a Reminder Application that ties together many of the Java
topics we have discussed so far in this topic. I won't give you much help
because I want you to design the application, but I will give you a list of
requirements.
1. The GUI for the program needs to provide an interface for users to
enter a message to represent a reminder, such as a meeting, confer-
ence call, birthday, anniversary, doctor's appointment, and so on.
The message can be any String.
2. The GUI needs to provide a way for the user to specify when he or
she wants the reminder to be scheduled. The simplest way (from the
point of view of the programmer) is to have the user enter the num-
ber of seconds or minutes to wait; however, a more user-friendly
GUI would allow the user to enter a date and time.
3. When it's time to display the reminder, a modeless dialog window
should appear on screen. Provide an OK button or something simi-
lar so the user can close the reminder dialog box. An optional fea-
ture might be to let the user choose to have the reminder appear in
5 minutes (or a time they specify), similar to an extra reminder.
4. Use the Timer and TimerTask classes to implement the actual
schedule.
5. Another optional feature would be to allow the user to schedule a
recurring reminder, similar to “Pay phone bill” at the 10 th of each
month, or “Take out trash” every Friday.
6. Check out the java.awt.Toolkit class, and see if you can figure out
how to make your computer beep when a reminder is displayed.
The GUI that allows users to enter a new task will be displayed when
the program is executed, and it will remain open until the Reminder
Application terminates. Because it is a Java program, there will also be a
command prompt window open at all times as well. You should be able
to enter a reminder and a scheduled time, and the reminder should
appear in a separate dialog window at the appropriate scheduled time.
Search WWH ::




Custom Search