问题
I have 10 images in one JPanel in JFrame. I want to resize all these images when user resize the JFrame window.
回答1:
Use a GridLayout to display the images. The grid will resize as the frame is resized.
Use Darryl's Stretch Icon to display the Icon on a JLabel. The Icon will automatically resize itself.
来源:https://stackoverflow.com/questions/28541974/resize-image-with-jframe-window-resize-in-java