tags:

views:

430

answers:

2

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
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