How to put a MouseCliked event on a table using JavaFX

2

I'm trying to put a MouseCliked event in my table but this error:

java.lang.IllegalArgumentException: argument type mismatch

My method looks like this:

private void tblArquivosMouseCliked(ActionEvent event) {

        System.out.println("Click Detectado");

    }

And in the Scene Builder:

Can anyone help? Thank you.

    
asked by anonymous 29.05.2015 / 15:38

1 answer

1

Your method should be as follows:

@FXML
public void tblArquivosMouseCliked(MouseEvent event) {
    System.out.println("Click Detectado");
}
    
29.05.2015 / 15:40