There is a Frame containing a button n i want to createanother window whenever the button is pressed.Is it possible ?I tried it by writing the creation of frame inactionPerformed() of the ActionListener interface,but it didn't work.