窗体
package lovo;
import javax.swing.JFrame;
public class MyJfRAME extends JFrame{
public MyJfRAME(){
/**
* 窗体大小
* 可见度
* 关闭
* 居中
*/
this.setSize(600,400);
this.setVisible(true);
this.setDefaultCloseOperation(3);
this.setLocationRelativeTo(null);
}
public static void main(String[] args) {
MyJfRAME m=new MyJfRAME();
}
}