how to know when jframe swing is painted
I'm just working with a Java application which has several tabs on her Gui. The issue is when I change the tabs I move a Jpanel which has a video on it, and sometimes (I dunno why) the application brokes.
I've been thinking about the possible solutions, and I want to wait for the Jframe, and of course the tabs, are painted, and then place the video panel on the tab displayed.
So, my question is: Is there a method which tells you if a Jframe has been painted totally?.
Thanks in advance