title: JavaFX WebView under IDEA
body: <p>I am new to IDEA. I run version Community 2020.1 and Gluon SceneBuilder 11.0.1 with JDK 11.0.2 and javafx-sdk 11.0.2 under Windows 10.
  I wrote a small test program, required adding a lot to run configurations, thanks to Egor Klepikov (IntelliJ). Here is the code of the controller:</p>
  
  <pre><code>public class Controller {
      public Button btn1;
      public WebView webView = new WebView();
      WebEngine webEngine = webView.getEngine();
      public Button showBtn;
      String fpath;
  
      @FXML
      public void initialize() {
  //        System.out.println("in controller initialize");
          File file = new File(String.valueOf(getClass().getResource("RateCalculatorHelp.html")));
          fpath = file.getPath();
  //        System.out.println("Path: " + fpath);
          webEngine.load(fpath);
     }
  
      public void showHtml(ActionEvent actionEvent) {
          webView.setVisible(true);
       }
  }
  </code></pre>
  
  <p>When I run the application, there is no error message but my html file does not show up. I could not find out why !!!  Help most welcome.</p>
  
  <p>PS Is there a way to attach a file with the project to my message ?</p>