File association in Mac

前端 未结 2 1124
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 07:28

Finding help from here we are now able create a Mac application from a jar file and associate the application with certain file extension .

When double click a file with

2条回答
  •  醉酒成梦
    2021-01-24 07:48

    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.

提交回复
热议问题