How do I display an Image in Java Swing MVC architecture?
问题 In my java application, my objective is to display or output an image using MVC architecture. My java application is comprised of an imagecontroller(main), imageview, and image model. I am currently able to select an image, the compiler acknowledges where the image has been selected from in the c: drive however it does not output or display the image. Here is a copy of my code below: package imagecontroller; import javax.swing.SwingUtilities; import java.io.File; public class ImageController