112k views
2 votes
Menus are attached to windows by calling the _____ method.

addMenuBar
setJMenuBar
setMenu
addJMenuBar

User Krauss
by
5.5k points

1 Answer

6 votes

Answer: Set J Menu bar

Step-by-step explanation:

J Menu bar class are used to display the menu bar in the window and frame. it basically inherited from the j menu class and it has various menus.

By using the J menu bar we can create the menu in java. The J menu class object is an element of pull down menu and it is used to display in he menu bar.

And the menu are attached with the frame by using J frame.setJMenu Bar.

User Wongx
by
6.4k points