In Java, implement a simple GUI calendar application. Use the GregorianCalendar
ID: 3691540 • Letter: I
Question
In Java, implement a simple GUI calendar application. Use the GregorianCalendar class from the library that provides a standard calendar system to represent and and manipulate a calendar in terms of day, month, year, time, etc.
Requirements:
1) Here is a sample initial screen of the calendar shown below:
2) Follow the MVC pattern to design the calendar application.
3) If events.txt exists, starting program will load events from the events.txt to the Calendar
4) The initial screen shows the current month view and the current day view. Each day on the month view is clickable. When a user clicked on a day on the month view, the day view (at the right side) is changed to represent the day the user clicked on.
5) The calendar comes with previous and next buttons to move the calendar backward and forward.
Each click on the button will change the calendar one day at a time. For example, if the current day is March 30, and if the user clicks on the forward button, the day view will change to April 1.
6) A user should be able to move the calendar back and forth as far as the GregorianCalendar can go.
7) The calendar comes with CREATE button through which a user can enter events to be scheduled in the calendar. To schedule an event on a particular day, a user first clicks on the day of the month view, and then clicks on the CREATE button. The CREATE button pops up input boxes through which the user can enter an event. See below for an example.
We assume that the user will correctly enter an even in the format shown in the picture sample above.
After the user saves the events, the event is stored in the calendar. All scheduled events should be presented on the day view.
8) The calendar should be able to check a time conflict. When a user enters an event schedule that conflicts with an existing event, the calendar generates an error message, asking the user to enter an event without any time conflict.
9) The QUIT button terminates the Calendar program and saves the events in a file called events.txt.
Quit CREATE Monday 3/31 5am March 2014 S M T W T F S 1 6am 16am 2 34567 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 am 8amExplanation / Answer
Please follow the code and comments for description :
Though the user experience may change hope the process matches.
Code :
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.