Multiple Choice
For this question, assume myView references an ImageView object. In order to preserve the image's aspect ratio (so it does not appear stretched or distorted) , you should use which of the following?
A) myView.setPreserveRatio(false) ;
B) myView.setPreserveRatio(true) ;
C) myView.setPreserveRatio() ;
D) Either (a) or (c) would work.
Correct Answer:

Verified
Correct Answer:
Verified
Q15: To preserve an image's aspect ratio you
Q16: If you set a scene's size to
Q17: When programming in JavaFX, you should think
Q18: When an event takes place, the control
Q19: An event handler class will not be
Q21: To add padding to an HBox you
Q22: The Pos type must be imported from
Q23: Which of the following import statements is
Q24: Select all that apply. Given the statement
Q25: The _ layout container arranges its contents