开发者

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

开发者 https://www.devze.com 2023-02-13 11:49 出处:网络
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:

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/source/browse/trunk/jarzilla/src/main/java/com/googlecode/jarzilla/Jarzilla.java#192


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

精彩评论

暂无评论...
验证码 换一张
取 消