JFrame refresh.
I got a JPanel on my JFrame, and I want to remove it to add another one. I use the remove method, then the add method. The problem is, the JFrame doesn't refresh. I have to reduce the frame to make the new JPanel show up. I tried setVisible(true) and repaint(), but none works.
Any help?

