I am having problems and I don’t really understand why. I have a JFrame and a JPanel and everything works properly. I am trying to add a jMenuBar into the JPanel and I cannot get it to show up. It is being placed under “Other Components” and does not show up during runtime. any suggestions?
edit: It seems that the appropriate answer is NetBeans cannot add a JMenu to a JFrame. I wanted to add this to the first post because the appropriate answer below was down-voted.
One of the smart way is
double click on JFrame which is at project bar
this appears new window with actual JFrame
at the left side palette bar appears there is all component of the swing
you have to only drag and drop item to this Frame
the code will automatically made by nb
you can also add an event to that item by right click on it