@@ -0,0 +1,1104 @@
+import javafx.fxml.FXML;%0Aimport javafx.scene.image.Image;%0Aimport javafx.scene.image.ImageView;%0Aimport javafx.scene.control.RadioButton;%0Aimport javafx.scene.control.ToggleGroup;%0A%0Apublic class ImageViewController %0A%7B%0A    // Private fields for components %0A    @FXML%0A    private ImageView myImage;%0A%0A    @FXML%0A    private ToggleGroup myToggleGroup;%0A%0A    @FXML%0A    private RadioButton dogRadioButton;%0A%0A    @FXML%0A    private RadioButton catRadioButton;%0A    %0A    // Private fields for the dog and cat images%0A    private Image dogImage;%0A    private Image catImage;%0A%0A    // Initialize method%0A    public void initialize() %0A    %7B%0A      // Load the dog and cat images%0A      dogImage = new Image(%22Dog.jpg%22);%0A      catImage = new Image(%22Cat.jpg%22);%0A    %7D%0A    %0A    // Event listener for the dogRadioButton%0A    public void dogRadioButtonListener() %0A    %7B%0A      if (dogRadioButton.isSelected())%0A         myImage.setImage(dogImage);%0A    %7D%0A%0A    // Event listener for the catRadioButtonListener%0A    public void catRadioButtonListener() %0A    %7B%0A      if (catRadioButton.isSelected())%0A         myImage.setImage(catImage);%0A    %7D%0A%7D%0A

Create ImageViewController.java