Sure, using a layout helps resize the components... but that does not magically resize the images on those components, unless the painting code specifically takes the size into account. You can do...
Type: Posts; User: KevinWorkman
Sure, using a layout helps resize the components... but that does not magically resize the images on those components, unless the painting code specifically takes the size into account. You can do...
I'm really not sure how using a different layout or calling revalidate will help resize the image. Even if the JLabel size is changed, that doesn't affect the image size (correct?).
I would extend...
You might have to do some custom painting. Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)