Create an Edit Menu Add another JMenu to the JMenuBar called Edit. This menu should have one JMenuItem called Add Word.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Create an Edit Menu Add another JMenu to the JMenuBar called Edit. This menu should have one JMenuItem called Add Word.

Post by answerhappygod »

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.
Create An Edit Menu Add Another Jmenu To The Jmenubar Called Edit This Menu Should Have One Jmenuitem Called Add Word 1
Create An Edit Menu Add Another Jmenu To The Jmenubar Called Edit This Menu Should Have One Jmenuitem Called Add Word 1 (6.59 KiB) Viewed 46 times
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!).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply