Displaying images using jfc

how can i display an image by reading data from a data file and a header
file and change it’s size. I had sucessfully displayed it and can change
its colors but when I am Zooming it , it cannot be done And the previous
image comes back.
please tell Whether I should use a Panel or something else


JPanel should be fine. Maybe try checking your repaint methods?