Create a GUI in Java. Create a complete GUI with a File Menu that…
Question Answered step-by-step Create a GUI in Java. Create a complete GUI with a File Menu that… Create a GUI in Java.Create a complete GUI with a File Menu that has the menu choices Open and Quit. Clicking on open should allow the user to select an input file as shown in lecture.Use a TreeMap to Sort the Dates.Sort the Date212’s using a TreeMap. Use the Date212 as a key, and use null as the value for the key. Note that if there are duplicate dates in the file the date will appear only once in the tree map.Please make sure the treemap and not copy and paste other answersHandle ErrorsCreate an exception called IllegalDate212Exception by extending IllegalArgumentException. Have the constructor of Date212 throw this exception if the date given as a String is illegal. Valid dates should be a string of 8 digits, with a month between 1 and 12, and a date that is valid for the month (e.g., between 1 and 31 for January.) Don’t worry about leap years. Catch the exception, and print the invalid date to the console along with the exception’s message.20211122202112032021120720190106,20180315,20020630200114142001035520030815,20030927200510102001031520211122,20211203 Computer Science Engineering & Technology Object-Oriented Programming Share QuestionEmailCopy link Comments (0)


