The code in Listing 4 calls the method named rotatePicture,
Then Listing 4
rotatePicture(slider.getValue()); display.show();