Respuesta :
Answer: setJMenubar
Explanation:Menus that are component of the Menu bar that display the options and tools for any function that can be performed in the system have the connection with the window in the field of java through the command of the setJMenubar. It is the command which is given to execute to bring the menu to the particular frame and get it attached according to the JFrame. Therefore, the correct option is setJMenubar.
Therefore, Menus are attached to windows by calling the setJMenuBar method.
A menu can be regarded as the set of options which is been presented to the user of a computer application .
- This help to locate information or execute a program function by user and it is attached to windows.
Therefore, Menus are attached to windows by calling the setJMenuBar method.
learn more about menus at;
https://brainly.com/question/11827791