I am getting the error with following two imports in Eclipse:
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
T
I got the same problem on Eclipse (MacOSX Yosemite) this morning but yesterday everything worked... To solve the problem I just deselected the checkbox for another JDK in Project > Properties > Java Build Path
restarted Eclipse, reselected the good one (JDK 1.8.0_60), restarted Eclipse again and voilà ! Just a weird bug with checkboxes...
Hope it ll help you.