I am coding my project in Swing and have a set of .java files with all the various interface screens i.e. main menu etc using JFrames.


I need to link these together i.e. Press a button on the Main menu screen which then goes to the password screen etc.


I have an idea that i need to put a call to the class I want to dispay in the actionperformed method of the class I am using but although the code passwordscreen.show(); compiples it does nothing!


What am I missing out?