导航

java的新窗体

Posted on 2016-05-22 14:38  4565892  阅读(100)  评论(0)    收藏  举报

1.JFrame窗体


        jf.setSize(200, 150);
        jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        
        
    }
    
    public static void main(String[] args) {
        new Example1().CreateJFrame("创建一个JFrame窗体");
        
        
        
    }
}