I have a JFrame that I want to add a menu bar to and then have that JFrame automatically open in fullscreen. If I just make a JFrame and set it to fullscreen with f.setExtendedState(f.getExtendedState()|JFrame.MAXIMIZED_BOTH ); that works fine: However, once I add a JMenuBar to that JFrame it will no longer open in fullscreen: What could be the cause
Tag: jmenubar
Swing application menu name not displaying correctly in Java 1.8
Okay, so I’ve done Swing applications before, and I know if you want to display a different name for the application menu (the one on Macs that usually have a “Preferences” and “Quit” option), you have to use: System.setProperty(“com.apple.mrj.application.apple.menu.about.name”, “App name”); and it must be executed before the JFrame is created. I’ve done this, but it continues to show my
How do I move my JMenuBar to the screen menu bar on Mac OS X?
When I move my JMenuBar to the screen menu bar on Mac OS X, it leaves some blank space where the menu would be in my window; I need to remove that space. I am using to move my JMenuBar to the screen menu bar. My friend who uses a Mac reports that this leaves some ugly vertical space where