I am trying to learn JavaFX, and I\'ve written the code shown down below, however I seem to be having trouble with this line of code:
btn.setOnAction(new Eve
You're mixing up Javafx with Swing. Replace
import java.awt.event.ActionEvent;
with
import javafx.event.ActionEvent;