Create an Edit Menu Add another JMenu to the JMenuBar called Edit. This menu should have one JMenuItem called Add Word.
Posted: Sat May 14, 2022 3:06 pm
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.
This is the input file for Project 4 This file has multiple words on a line. The words are separated with a comma, space, or period. As usual, there may be invlaid words that contain numb3rs or othe ju*%$nk. These words should be printed to the console. The words are divided into the usual grid layout cells and sorted. They may be sorted using any technique you want, including the TreeMap. This is the last project for the semester (yay!).
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.
This is the input file for Project 4 This file has multiple words on a line. The words are separated with a comma, space, or period. As usual, there may be invlaid words that contain numb3rs or othe ju*%$nk. These words should be printed to the console. The words are divided into the usual grid layout cells and sorted. They may be sorted using any technique you want, including the TreeMap. This is the last project for the semester (yay!).