resizing images in a JLabel
I'm working on a "choose your own adventure" game that features a JLabel (actually an ImageLabel extended from JLabel) on which I add various ImageIcons. Press a button and a new ImageIcon appears on the display. I've been using an example from the Java Swing Tutorial as a template,
but I can't seem to find anything which addresses my particular problem:
The ImageIcons are loaded from JPGs of various sizes.
The ImageLabel is a fixed size. How do I resize the images to fit the label?
Thanx in advance,