Java Swing Mac OSX Preferences menu
•
Java
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
二维码