1

What is the correct import to pass out error Cannot find Symbol MouseEvent of javafx library ?

Sample error :

> javac Clavier.java Touche.java Gui.java 
Touche.java:48: error: cannot find symbol
  this.setOnMouseEntered(new EventHandler<MouseEvent>(){
                                        ^
symbol:   class MouseEvent
location: class Touche

Have a nice day,

Kubadev
  • 867
  • 10
  • 25

1 Answers1

1

Thanks to @Berger, the answer is that i needed to import javafx.scene.input.MouseEvent Have a nice day!

Kubadev
  • 867
  • 10
  • 25