title: JavaFX - create custom button with image
body: <p>I would like to create a custom button, that has two states pressed or not, like a toggle button.  I have got two images to do this (pressed and not pressed), so how can i create the button and display it with my images ?  The button must take the size of the image.<br>
  I am not using FXML.
  Thank you for helping.</p>