Relative Content

Tag Archive for paneldisplayswap

Why doesn’t this code swap images, as intended, when I press any key?

My program is intended to display 2 panels initially with different images from file Z_pic1.png and Z_pic2.png.WHEN ANY KEY IS PRESSED the displays on the panels should interchange swap. It is not displaying 2 images, but just the image from Z_pic2,png. Any key press has no effect. Wanna find what’s wrong.