Resize Processing canvas in JavaFX window

Try taking a look at this one :