I'm currently searching for a way to pass in a parameter in a onMouseClicked
function such as onMouseClicked="#GetBoxNum"
in my .fxml
document.
Sorry if this question has been asked already I couldn't find it when i was searching for it.
The only parameter that can be passed is the MouseEvent. So the answer to your question is: It is not possible to pass an arbitary argument.