I\'ve got a JMenuBar and a JPanel. I\'d like to add the JMenuBar to the JPanel. How would I do so?
I tried too but JMenuItem with Jmenu and JmenuBar was not added to JPanel. But you can get that feel if you declare JFrame's layout as null then use setBounds(x, y, width, height) on JMenuBar instance then add the menu bar to JFrame.
JMenuItem
Jmenu
JmenuBar
JPanel
JFrame
setBounds(x, y, width, height)
JMenuBar