I'm currently working on a program where i need to call another java class from a button listener in another class. For example i have a button in example1 and when i press that button i want to execute the whole example2 class(which is a slideshow application). Here is some of my code That has the button

Code:
JButton button2 = new JButton("button2");
button2.addActionListener(new button2Listener());

....

private class button2Listener implements ActionListener
	{
		public void actionPerformed(ActionEvent e)
		{
			// I'm confused on what to put here
			


		}
          }
And here is some code from the other java class that i need to execute the whole file
Code:
public class Internal extends JFrame
{

	public Internal()
	{

		//Code for the slideshow goes here
	}
}
	public static void main(String[] args)
	{
		Internal in = new Internal();
		in.show();
	}

}
Thanks.