I forgot how to do this, I remember that I have to put a BorderLayout(... NORTH);
. How do I put JMenuBar
in JFrame
?
I forgot how to do this, I remember that I have to put a BorderLayout(... NORTH);
. How do I put JMenuBar
in JFrame
?
You do not add a menu bar as any component, the way to add it is:
seuJFrame.setJMenuBar(seuJMenuBar);
If you want more details, here are some links from the documentation explaining: