title: How to use java update 40 version of Java on NetBeans 8
body: <p>I would like to use and test the classes added in Java 8 update 40, but unfortunately the compiler of Netbeans generates an error when i add the following statement:</p>
  
  <pre><code>import javafx.scene.control.Dialog&lt;R&gt;;
  </code></pre>
  
  <p>The following image shows that the JDK installed in my comuter is : java 8 update 40.
  <img src="https://i.stack.imgur.com/KVsNm.jpg" alt="enter image description here"></p>