you see that when you're adding new components to the panel/frame etc..

I have no time to test your code but first option would be to try to reset the frame as visible as the last line of code on...