Java Swing Mac OSX Preferences menu

I'm trying to add the Preferences menu to my java swing application, which proves a little disgusting

I've read a lot of Posts and articles in this field. It sounds simple, but

In the example I found, I saw a response to com apple. eawt. Application, but an error occurred when I tried to import it in eclipse indigo: access restriction: application type / system / library / Java / javavirtualmachines / 1.6 cannot be accessed due to restrictions on the required library 0.jdk/Contents/Classes/ui. jar

Any ideas?

I'm working on IMAC OSX 10.6

Solution

You can use osxaadapter, which "uses the reflection proxy model to hook existing preferences about and exit functions." See also answer

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>