IntelliJ's code completion looks to be wrong then. Just delete the "(EventHandler<T>)"

On 27/03/2019 18:29, Andrew Munn wrote:
How do I listen for mouse events in 11.0.2? IntelliJ's code completion
suggests this:

textField.addEventHandler(MouseEvent.MOUSE_ENTERED, (EventHandler<T>) t -> {
  // do something
});

but it fails to compile with error: cannot find symbol T

Thanks

Reply via email to