Reputation: 2961
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:
import javafx.scene.control.Dialog<R>;
The following image shows that the JDK installed in my comuter is : java 8 update 40.
Upvotes: 0
Views: 145
Reputation: 7543
Right click your project. Go to properties. Click Build > Compile and change or add jdk_8_u40 platfrom
Upvotes: 0
Reputation: 38142
Make sure that in the /etc/netbeans.conf file you configured the correct JDK.
Also as WonderWorld says: Use
import javafx.scene.control.Dialog;
instead of
import javafx.scene.control.Dialog<R>;
Upvotes: 2