📄 game.java
字号:
//********************************************************************
// Game.java Author:yj_hu
//
// the main function for implement the whole programme
//********************************************************************
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Game
{
//-----------------------------------------------------------------
// Presents a collection of circles.
//-----------------------------------------------------------------
public static void main (String[] args)
{
JFrame frame = new JFrame ("Welcome to this game");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new GamePanel());
frame.pack();
frame.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -