I've got an application that uses a main JFrame. In its constructor it creates and displays an instance of JPanel1. From the ActionPerformed method in JPanel1, I want to display an instance of JPanel2 in the main JFrame (and make invisible the instance of JPanel1). I can't use getContentPane().add in the JPanel1 class because this is a method of JFrame, not JPanel. I must just be thinking of this in the wrong way. What's the best way to do this? Thanks SO MUCH!!!