This project involves creating a program to manage and display lists of dates. The main components of the project include a Date212 class representing a date, a graphical user interface (Date212GUI) to display sorted and unsorted lists of dates, and handlers (FileMenuHandler and EditMenuHandler) to manage file input and date searches.
- Date212.java
- Represents a date with methods for creating, validating, and comparing dates.
- Date212GUI.java
- GUI class with functionalities to display sorted and unsorted lists of dates.
- Utilizes FileMenuHandler and EditMenuHandler for file input and date searches.
- FileMenuHandler.java
- Handles actions related to the "File" menu in the GUI.
- Allows users to open files and quit the program.
- EditMenuHandler.java
- Handles actions related to the "Edit" menu in the GUI.
- Specifically responds to the "Search" option, prompting the user to enter a year.
- Project4.java
- Main class with the main method serving as the entry point for the program.
- Calls Date212GUI.initiateGUI to start the GUI.
- SortedDate212List.java
- Class for managing a sorted list of Date212 objects.
- UnsortedDate212List.java
- Class for managing an unsorted list of Date212 objects.
To run the program, execute the main method in the Project4.java class. This will initiate the GUI (Date212GUI) and provide options for opening files, sorting and displaying lists of dates, and searching for dates by year.
- Opening Files
- Click on the "File" menu and select "Open" to choose a file with date information.
- Displaying Lists
- The GUI will display both sorted and unsorted lists of dates.
- Searching by Year
- Click on the "Edit" menu and select "Search."
- Enter a year when prompted, and the GUI will display dates matching that year.
- Quitting the Program
- Click on the "File" menu and select "Quit" to exit the program.
Ensure that input files adhere to the expected format for successful date parsing.




