Access Mac OS X Application Menu from Java

前端 未结 1 1633
庸人自扰
庸人自扰 2021-01-19 10:26

I\'m writing a Java application designed for all platforms, but specifically, I am working on OS X appearance and integration (I use NetBeans on my MacBook Pro). I\'d like t

1条回答
  •  -上瘾入骨i
    2021-01-19 11:01

    You might want to have a look at Bringing your Java Application to Mac OS X and (more importantly) Bringing your Java Application to Mac OS X Part 2 and Bringing your Java Application to Mac OS X Part 3

    You might Java System Property Reference for Mac of use

    You may want to take a look at Apple's Java 6 Extensions API, from my brief reading, it would appear that you basically want to use the default instance if com.apple.eawt.Application and supply the handlers you need (such as setAboutHandler).

    You may also want to read through The Java on Mac OS X About, Quit and Preferences menu items and events article, which should provide some more additional hints.

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