Question: [Simple Java question] 1.How to create the following objects: (a)A JMenuItem object. (b)A JMenu object. (c)A JMenuBar object. 2.How will you set up the layout
[Simple Java question]
1.How to create the following objects: (a)A JMenuItem object. (b)A JMenu object. (c)A JMenuBar object.
2.How will you set up the layout to be BorderLayout?(code block)
3.How to do the following:
(a)To add or associate a menu item to a menu. (b)To add or associate a menu to a menu bar. (c)To add or associate a menu bar to a JFrame object. (d)To add a separate bar to a menu. Example answer: Call the addSeparator method of the JMenu object to add a separator in a menu.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
