2 Replies Latest reply on Nov 25, 2012 3:07 PM by 883781

    How to access a stage from a FXML controller class?

      Is it possible to access the stage inside a controller?
      In my case I would like to open a file chooser dialogue from an action event handle method like this:
      protected void handleMenuItemAction(final ActionEvent event) {
          final FileChooser fileChooser = new FileChooser();
          final File importFile = fileChooser.showOpenDialog(stage.getOwner());