[SOLVED] CS212 Lab 19-Modifying a Java GUI

25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab19-ovefhu.zip (31.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

 

Create a new project in Eclipse called Lab19.

Import the classes SampleGUI, SampleGUIMain and FileMenuHandler from Z:\Lab19, and look at and run the code.

Notice that SampleGUI has a helper method called createEditMenu. Fill in this method so that it creates another Menu with the name “Edit”, and that has JMenuItems called “Find” and “Replace.” (Use a lot of cut and paste from createFileMenu.)

Create another class called EditMenuHandler and associate this handler with the menu items “Find” and “Replace.” This can easily be done by creating the class EditMenuHandler in Eclipse, and cutting and pasting the code from FileMenuHandler into it, and doing the appropriate renaming.

Run the program SampleGuiMain and observe that clicking on the Edit menu choices also causes an appropriate messageDialog to appear.

  • Lab19-ovefhu.zip