[英]What is the alternative for deprecated com.apple.eawt.ApplicationListener
[英]What's the alternative to using the now deprecated com.apple.eawt.ApplicationAdapter in Java Swing apps on the Mac?
看起來蘋果已經棄用了我的應用正在使用的API。 不知道如何解決這個問題。 具體用法如下:
好吧,有點谷歌搜索讓我獲得API文檔 (第二次打我),它包含在第一句話中:
已過時。 由AboutHandler,PreferencesHandler,AppReOpenedListener,OpenFilesHandler,PrintFilesHandler,QuitHandler,QuitResponse取代。
(帶有前面提到的接口和類的鏈接)。
所以看起來你不應該使用一個對象繼承這個抽象類,而是使用幾個對象用於不同的目的,並使用Application對象注冊它們。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.