File association in Mac

╄→尐↘猪︶ㄣ 提交于 2019-12-02 05:19:44
Andrew Thompson

Use Java Web Start to declare the interest in that file-type. Here is a demo of the JNLP file services that associates the .zzz file-type with the app. This approach should work for OS X (& Windows, & *nix).

Apple provides some specific classes that allow you to better incorporate Java applications into Mac OS X. Google for "Apple Java eawt", or try this link: http://developer.apple.com/library/mac/documentation/Java/Reference/JavaSE6_AppleExtensionsRef/api/com/apple/eawt/package-summary.html. Look especially for the Application- and ApplicationAdapter-Class (reps. their not-deprecated parts). you can register special listeners to get the information about files that should be opened.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!