I am developing a graphics application. I am playing a video in my application and when I press any key , it should stop currently playing video and should start displaying other images.Everything went well except when I press any key the video is getting stopped but
the screen is not getting repainted..(i.e the screen turns into black and stucks)
I thought that repaint() method is not working and but the fault is not with repaint method.
When I test the repaint method with sample code, its working but when i test the same method with my original code its not getting executed.. I am thinking that the fault is in way of
stopping the video and painting the screen again..