找不到 `DisposeListener` 的替代品 class

Unable to find replacement for `DisposeListener` class

正在从 6.20 升级到 7.21.2。无法找到替代 com.teamdev.jxbrowser.chromium.events.DisposeListener class.

的回调

有一个 BrowserClosed 事件可以跟踪特定浏览器何时关闭:

browser.on(BrowserClosed.class, event -> { System.out.println("Bye") });

EngineClosed检测整个引擎何时关闭:

engine.on(EngineClosed.class, event -> {});