1 Ответить Последний ответ: 30.07.2017 19:12, автор: 3513491

    how to update gui from pop up window?

    3513491

      i have javafx application with parent stage and child stage (pop up)

      i want when click o button in child stage the listview in parent stage update.

      i use Platform.runLater() but i can not update  the listview.

        • 1. Re: how to update gui from pop up window?
          3513491

          i find solution

          we think we have two stage(window),1-parent stage,2-child window(pop up window)

          1. first send the stage object of parent stage to child stage
          2. in child stage set :

          childStage.setOnHidden(event->{ Parent root=FXMLLoader.load(getClass().getResource(parent fxml));

          Scene scene=new Scene(root);

          parentStage.SetScene(scene);

          parentStage.show();