Resize a image?

I want to resize a JPG file i.e. i want to change the dimensions of the JPG file.Sothat it can be dislpayed in a small area.I want to display image in the frame.For that i used Icons with Lables.Do any body hav any idia?
[276 byte] By [dadabaea] at [2007-10-3 4:32:29]
# 1
Two ways of doing it:1. Draw it on a Graphics context (in a paintComponent() method or to an off-screen image) using an AffineTransform2. Create a scaled instance using Image.createScaledInstance()1 is faster, 2 gives better quality (if you use the smooth algorithm).
itchyscratchya at 2007-7-14 22:36:00 > top of Java-index,Desktop,Core GUI APIs...
# 2
i want to display the image using icons in a frame.do u hav code ?
dadabaea at 2007-7-14 22:36:00 > top of Java-index,Desktop,Core GUI APIs...
# 3
just add your image to a jlabel.
linuxhippya at 2007-7-14 22:36:00 > top of Java-index,Desktop,Core GUI APIs...