I am making a gui to open image files, display them, manipulate them and then save them. In the menu bar there is a file option which has the "open" option. i am using event handling to open an image file when we click on the open option. by using the following code, the image file is being read. now i want to display the image file on my frame. for that i used Image icon. But, the image is displayed once you minimize and then maximize the frame. it does not display instantaneously. what is wrong in the code?
ok the image is displaying fine with f.validate. now the problem is that if one image is displayed, and i try to open another image, the second image opens but it's like it is pasted over the 1st one. what should i do so that this does not happen?