-2
I forgot how to do this, I remember I have to put one BorderLayout(... NORTH);
. How do I put a JMenuBar
in a JFrame
?
-2
I forgot how to do this, I remember I have to put one BorderLayout(... NORTH);
. How do I put a JMenuBar
in a JFrame
?
0
You do not add a menu bar as any component, the way to add it is:
seuJFrame.setJMenuBar(seuJMenuBar);
If you would like more details, here are some links in the documentation explaining:
Browser other questions tagged java swing jmenubar
You are not signed in. Login or sign up in order to post.
Douglas, I removed a comment from your question, and I want to give you a hint, don’t put that sort of thing in the question, just focus on your doubt, this type of comment is totally irrelevant to doubt and may imply that you do not want to have the least effort to learn, and always add a relevant piece of what you tried to do. The way it was, it can take away good answers and even take your question to closure, leaving you unanswered.
– user28595
Did the answer help you? If yes, you can mark it as accepted by clicking on
v
the left of the answer :)– user28595