I want to display variations of the same image in the same jframe, for example display an image in jframe, then replace it with gray scale of the same image
+2
A:
you will have to repaint the jframe whenever you update the image.
here is what a simple google on the topic brings up: (I use those tutorials for all my java coding)
http://java.sun.com/docs/books/tutorial/2d/images/drawimage.html
ldog
2009-10-26 19:12:00
A:
I'm not really sure what you question is but if you have a BufferedImage then you simply create an ImageIcon using the image, then you add the icon to a JLabel and add the label to the GUI like any other component.
If you question is about how to create a gray scale, the I suggest you search the web using those terms as the search keywords, I'm sure you will find examples out there.
camickr
2009-10-26 20:03:17