Write code to create a new menu item named aChoice that has the label "Exit". Suppose you are defining a class called MenuGUI that is a derived class of the class JFrame. Write code to add the menu...



Write code to create a new menu item named aChoice that has the label "Exit".



Suppose you are defining a class called MenuGUI that is a derived class of the


class JFrame. Write code to add the menu item mItem to the menu m. Then


add m to the menu bar mBar, and then add the menu bar to the JFrame


MenuGUI. Assume that this all takes place inside a constructor for MenuGUI.


Also assume that everything has already been constructed with new, and that all


necessary listeners are registered. You just need to do the adding



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here