I have many frames. When I move from frame to frame making one invisible and the other visible the screen becomes blank. This means that the next frame opens after a delay. Is there any way to resolve this? Here is my code:
f.setVisible(false);
MyFrame1 f1=new MyFrame1();
f1.setVisible(true);
f is the object of my first frame,
f1 is the object of my second frame.