Platform.runLater(() -> { // });
Platform.runLater一些狀況下沒有賦值到fx頁面上ide
採用task方式spa
Task<SB> task = new Task<SB>() { @Override public SB call() throws Exception { return new SB(xxx); } }; task.valueProperty().addListener((obs, oldMessage, a) -> //執行fx頁面 ); new Thread(task).start();