Update GameFrame.java

pull/3/head
nxist2202005086 1 year ago
parent 8aef66dc35
commit 911a34d811

@ -1,17 +1,19 @@
package main;
import javax.swing.*;
import java.awt.*;
/* 窗体类*/
public class GameFrame extends JFrame {
public GameFrame(){
setTitle("五子棋");//设置标题
setSize(620,670);
//setVisible(true);//设置显示窗体
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 关闭后退
setLocationRelativeTo(null);//居中
//不变窗口
getContentPane().setBackground(new Color(209,146,17));
}
}
package main;
import javax.swing.*;
import java.awt.*;
/* 窗体类*/
public class GameFrame extends JFrame {
public GameFrame(){
setTitle("五子棋");//设置标题
setSize(620,670);
//setVisible(true);//设置显示窗体
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 关闭后退
setLocationRelativeTo(null);//居中
//不变窗口
getContentPane().setBackground(new Color(209,146,17));
JPanel rightBlankPanel = new GameTimeyzm();
add(rightBlankPanel, BorderLayout.EAST);
}
}

Loading…
Cancel
Save