I put in
to make it so that my menu shows up on the top menu bar instead of inside the frame. However, when I adjust the size of the window, the menu bar inside the frame appears. That's the one I don't want. Also, I'm having trouble enabling/disabling menu items. The bar that appears when I resize the menu has the disabled options I wanted, but the code I use doesn't work on the top menu bar; it just stays enabled.
Other info:
The unwanted menu bar inside the frame isn't invisible before I resize it; it doesn't exist. I'll add more if I see some more information that is necessary.
EDIT: Also, if I resize it without it being manual, as in using setSize() instead, (without clicking on the draggy resize thingy) the menu bar I don't want doesn't show.
Anyone experienced in Mac GUI have any tips?
Code:
System.setProperty("apple.laf.useScreenMenuBar", "true");
Other info:
The unwanted menu bar inside the frame isn't invisible before I resize it; it doesn't exist. I'll add more if I see some more information that is necessary.
EDIT: Also, if I resize it without it being manual, as in using setSize() instead, (without clicking on the draggy resize thingy) the menu bar I don't want doesn't show.
Anyone experienced in Mac GUI have any tips?