Search code examples
javamacosswingjmenubar

Javax JMenuBar with Mac


When I try to add a JMenuBar to my frame in Mac, it doesn't show up. I assume it's because JMenuBar isn't integrated into the Mac native method. So can anybody help me with the code that I can use to make my bar viewable?


Solution

  • You can also set the apple.laf.useScreenMenuBar property to true in your Info.plist, as shown here.