I have a program using a JTabbedPane where I 3 classes, 2 are JPanels and one is a JFrame which contains a JTabbedPane. I am trying to swap one JPanel when a button is clicked. The first JPanel is a login and when user is verified I have removed it and I am trying to replace it with another JPanel and at the same time trying to enable the tabs as they are disabled when the program starts. I have tried everything but I am having difficulties. Any suggests would be much appreciated. I just need pointing in the right direction.