title: take print from webview using javafx
body: <p>I am trying to open HTML file in web view using JavaFX. Now I want to print <code>WebView</code> content.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Group group= new Group();
  Scene scene= new Scene(group);
  fxpanel.setScene(scene);  
  WebEngine eng;
  WebView webview = new WebView ();
  group.getChildren().add(webview);
  webview.setMinSize(740,430);
  webview.setMaxSize(740,430);  
  webview.setVisible(true);
  eng= webview.getEngine();
  
  
  try
  { 
      eng.load(new File("path of the htmlfile").toURI().toURL().toString());
  }
  catch(Exception ex)
  { 
      JOptionPane.showMessageDialog(null,"exception") ;}
  }
  </code></pre>