gnome-3

JavaFX Freeze on Desktop.open(file), Desktop.browse(uri)

匆匆过客 提交于 2019-11-27 02:40:21
问题 I'm running some code in Java on Ubuntu 12.04 LTS 64 Bit (with Gnome Shell), using Oracle JDK 1.8.0_05 via NetBeans8.0. The following function works perfectly when called either in Main or in an otherwise empty Java Project, however when called from any JavaFX application, it causes the window to freeze and stop responding (although the project complies perfectly), requiring it to be Force Closed. Can anyone suggest any issues with what I've written which might be causing an issue or loop?