What's the alternative to using the now deprecated com.apple.eawt.ApplicationAdapter in Java Swing apps on the Mac?

前端 未结 1 1969
渐次进展
渐次进展 2020-12-20 20:54

Looks like apple has deprecated an api my app is using. Not sure how to work around this. The specific usage can be seen here:

http://code.google.com/p/jarzilla/sour

相关标签:
1条回答
  • 2020-12-20 22:00

    OK, a bit of googling got me the API doc (second hit for me), and it contains right in the first sentence:

    Deprecated. replaced by AboutHandler, PreferencesHandler, AppReOpenedListener, OpenFilesHandler, PrintFilesHandler, QuitHandler, QuitResponse.

    (with links to the interfaces and class in mentioned).

    So it looks like you should not use one object subclassing this abstract class, but several objects for the different purposes, and register them each with your Application object.

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