package cn.study.chess;
import java.awt.Frame;
public class GameFrame extends Frame{
public void launchFrame(){
this.setSize(500, 500);
this.setLocation(200, 100);
this.setResizable(false);
}
public static void main(String[] args) {
new GameFrame().launchFrame();
}
}
this.setResizable(false);
this.setVisible(true);//加上這句