【发布时间】:2013-08-16 12:15:02
【问题描述】:
我有一个 Swing 应用程序,我需要在其中显示内部生成的 HTML/CSS。为了做到这一点,我改编了the code from this StackOverflow question。
该控件工作正常。但是,当应用程序结束时,我收到错误
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9622171ae8, pid=5782, tid=140283095549696
不管怎样,直接来自 Oracle 的示例代码(在 StackOverflow 帖子中引用)也有同样的问题。
我尝试在窗口关闭时显式调用Platform.exit(),但错误仍然存在。那么,当 JavaFX 嵌入到 Swing 应用程序中时,如何正确关闭它呢?
【问题讨论】: