I can't make the ContentPane static but I have to access it In another method that I'm accessing in another class and I keep getting this error:
Cannot make a static reference to the non-static method
    getContentPane() from the type JFrame
..and when I try to setSize
Cannot make a static reference to the non-static method setDefaultCloseOperation(int) from the type JFrame
I am so confused. Can you please help me?
Edit1
ToutrialStart
public class ToutrialStart extends JFrame implements ActionListener
{
static Container contentPane = getContentPane();
public static void schoolDecider()
{
    contentPane.setLayout(null);
    contentPane.setBackground(Color.BLACK);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(1024, 600);
    setLocation(0,0);
    setTitle("Title");
    setResizable(false);
}
}
touDia
public class touDia extends JFrame implements actionListener
{
    public void school()
    {
        ToutrialStart.schoolDecider();
    }
}
 
     
     
    