This content has been marked as final. Show 3 replies
Moderator action: Moved from New to Java
Add ComponentListener. When public void componentResized(ComponentEvent e) is called resize your image using
Image.public Image getScaledInstance(int width, int height, int hints) method. Then reassign the new image to your label
Also good to note is that you should save the original Image and do all scaling instances from the original, not the copies. Images definitely degrade as they get scaled over and over again.