How do I resize the label's icon?

Hey!

I currently have a label inside a scrollpane. When the user selects an image, the label's icon displays that image. However, I don't like the scrollbars, and would prefer it if I could resize the image to fit to the size of the label. Is this possible? How do I do that? Thanks in advance!

[309 byte] By [Tjorriemorriea] at [2007-11-27 8:28:57]
# 1
You could set minimum and maximum dimensions for the JLabel. See JComponent.setMinimumSize(Dimension).
Djaunla at 2007-7-12 20:19:06 > top of Java-index,Java Essentials,New To Java...