public void first() { cp.remove(second); cp.add(first); pack(); return; }
public void second() { cp.remove(first); cp.add(second); pack(); return; }
This looks pretty raw I know, but should give the basic idea of what i'm trying to do. The problem comes when I click 'next', the first screen dissapears, but the 2nd screen is blank, as if the JPanel hasnt been added. I tried repaint(), but no luck.