Page 1 of 1

Java Plz and the input.txt is below Create a GUI with a File Menu Create a complete GUI with a File menu that has menu i

Posted: Sat May 14, 2022 2:35 pm
by answerhappygod
Java Plz and the input.txt is below Create a GUI with a File
Menu Create a complete GUI with a File menu that has menu items for
Open and Quit. Clicking on Open should allow the user to choose a
file to be read, and the file should be opened and displayed in the
six cells of the grid layout. Create an Exception for Words and
Handle It The constructor of the Word class should check that the
word is valid (has only letters) and throw an IllegalWordException
if it is not. Use a regular expression to check for validity, and
print invalid words to the console. You will need to create a class
for the IllegalWordException. Use a TreeMap to Sort the Words
Rather than using a SortedWordList to sort the words, use a
TreeMap. The keys for the TreeMap are Words. For the values, you
can use null. The TreeMap can be instantiated as TreeMap. Create an
Edit Menu Add another JMenu to the JMenuBar called Edit. This menu
should have one JMenuItem called Add Word. Clicking on the menu
item should prompt the user for another word to add to the words
already read from the file. The word, if valid, should be added to
the proper cell of the grid layout. All the other cells remain the
same. Read from a file that has multiple words on a line The input
file will now have multiple words on a line separated by spaces,
commas, and periods. Use either a Scanner or a String Tokenizer to
separate out the words, and add them, if valid, to the appropriate
cells of the grid layout. Invalid words, once again, get displayed
on the system console. A sample input file will be on
Blackboard.
Java Plz And The Input Txt Is Below Create A Gui With A File Menu Create A Complete Gui With A File Menu That Has Menu I 1
Java Plz And The Input Txt Is Below Create A Gui With A File Menu Create A Complete Gui With A File Menu That Has Menu I 1 (8.04 KiB) Viewed 50 times
**********************11 7"**???