My
java code below uses a JFRAME to display a image. The image is displaying but is taking up like 3000 pixels width. So I can see the entire image being display. I want my java code to display the image in a frame that is 500 by 500. The image has to fit within that frame.