Native Swing Menu Bar Support For MacOS X In Java

后端 未结 7 1958
北海茫月
北海茫月 2020-12-01 09:54

A link that stands out is http://www.devdaily.com/blog/post/jfc-swing/handling-main-mac-menu-in-swing-application/ however the menu bar under Mac OS X displays as the packag

相关标签:
7条回答
  • 2020-12-01 10:31

    If you are launching multiple JFrames and you use the mac menu, then one of the JFrames could be replacing the JFrame you want with one that has a different menu structure. I'm not sure if you can share one JMenuBar for multiple JFrames, but you could just make an application wide menubar that all the frames instantiate.

    0 讨论(0)
提交回复
热议问题