我有2个testfx测试,每个测试都能成功运行,但在串行运行时失败。该错误信息是: --- Exception in Async Thread ---
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Cannot set style once stage has been set visible
我正在使用绑定和属性在JavaFX中工作。 我有一个Label label和一个Person currentPerson。 我有以下代码: label.textProperty().bind(currentPerson.nameProperty());
然后,我必须在另一段代码: currentPerson = newPerson; //newPerson is a given Person