为什么我的窗口不会显示呢?有没有哥看一下?



```java
package com.ujn.com;

import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class MainClass {
        JFrame jf;
        JPanel jp1,jp2;
        JTextField tf;
        JButton j1,j2,j3,j4,j5,j6,j7,j8,j9,j10,j11,j12,j13,j14,j15,j16,j17,j18,j19,j20;
        public void MainClass(){
            jf = new JFrame("Calculator");
            jp1 = new JPanel();
            jp2 = new JPanel();
            tf = new JTextField(400);
            j1 = new JButton("sqrt");
            j2 = new JButton("+/-");
            j3 = new JButton("CE");
            j4 = new JButton("C");
            j5 = new JButton("7");
            j6 = new JButton("8");
            j7 = new JButton("9");
            j8 = new JButton("/");
            j9 = new JButton("4");
            j10 = new JButton("5");
            j11 = new JButton("6");
            j12 = new JButton("*");
            j13 = new JButton("1");
            j14 = new JButton("2");
            j15 = new JButton("3");
            j16 = new JButton("-");
            j17 = new JButton("0");
            j18 = new JButton(".");
            j19 = new JButton("=");
            j20 = new JButton("+");
            jf.setLocation(320, 500);
            jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            jf.setSize(600, 400);
            jp1.setSize(100, 400);
            jp2.setSize(500, 400);
            GridLayout gl1 = new GridLayout(2,1);
            jf.setLayout(gl1);
            jf.add(jp1);
            jf.add(jp2);
            jp1.add(tf);
            GridLayout gl2 = new GridLayout(5,4);
            jp2.setLayout(gl2);
            jp2.add(j1);
            jp2.add(j2);
            jp2.add(j3);
            jp2.add(j4);
            jp2.add(j5);
            jp2.add(j6);
            jp2.add(j7);
            jp2.add(j8);
            jp2.add(j9);
            jp2.add(j10);
            jp2.add(j11);
            jp2.add(j12);
            jp2.add(j13);
            jp2.add(j14);
            jp2.add(j15);
            jp2.add(j16);
            jp2.add(j17);
            jp2.add(j18);
            jp2.add(j19);
            jp2.add(j20);
            jf.setVisible(true);
    }

    public static void main(String[] args) {
        MainClass ff = new MainClass();
    }
}

```