Native Swing Menu Bar Support For MacOS X In Java

后端 未结 7 1991
北海茫月
北海茫月 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:21

    You need to set the "com.apple.mrj.application.apple.menu.about.name" system property in the main thread, not in the Swing thread (in other words, just make it the first line in the program).

提交回复
热议问题