I've written this applet into which the user can paste a screenshot and do various things with the pasted image. The problem i've encountered is that when the image is made to fit into the panel, its very illegible. Is there a way to make the image more smoother? I don't mind changing the resolution of the picture or whatever as long as the image is good enough to view.

thank you in advance