Add a file menu to your WordGUI with options to open any file for reading , and
Question:
Add a file menu to your WordGUI with options to open any file for reading , and one to Quit the program. You will need a FileMenuHandler class to handle the events from the FileMenu. Be sure to use getAbsolutePath() when getting the file from the JFileChooser, not getName().
Create exception called IllegalWordException (by extending IlegalArgumentException as shown in lecture) and have the constructor of the Word throw it. Use a try/catch statement to catch this exception in your program, and show the erroneous Words in the GUI as usual.
Use an ArrayList to store the unsorted, sorted and erroneous words. You can use the Collections.sort() method to sort the ArrayList rather than selection sort.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill