Ok, so lets say you created a GUI that extends JFrame named NewMovieFrame. The code to allow the JButton to open the frame would look like this:
//Our Button that will open the new JFrame
JButton openFrame = new JButton("Open Frame");
//We add an actionListener to the JButton
openFrame.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e)
{
/* If the constructor of the NewMovieFrame JFrame
* sets itself visible, we just need to construct
* the NewMovieFrame JFrame like this:
*/
new NewMovieFrame(...);
/* If however the NewMovieFrame JFrame does not set
* itself visible in the constructor, we need to do
* this:
*/
NewMovieFrame temp = new NewMovieFrame(...);
temp.setVisible(true);
}
});
//Assume we add the openFrame JButton to our main GUI
If you show the code you have, I can help you more directly, instead of just using the example above.