FX.deferAction(new Function0<Void>() {
@Override public Void invoke() {
//Some code here
return null;
}
});
Run Code Online (Sandbox Code Playgroud)
我将代码从javafx 1.3转换为javafx 2.1,但我遇到了这个问题.在javafx 2.1中这个问题的解决方案是什么?
javafx.application.Platform.runLater(new Runnable() {
public void run() {
// some code here
}
});
Run Code Online (Sandbox Code Playgroud)