📄 skeleton.java
字号:
package game;import java.awt.BorderLayout;import javax.swing.JFrame;import javax.swing.JLabel;/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author ibm */public class Skeleton extends JFrame { private JLabel label; public Skeleton() { label=new JLabel(""); setTitle("Snake"); setSize(320, 420); setResizable(true); setLocationRelativeTo(null); setDefaultCloseOperation(EXIT_ON_CLOSE); setResizable(false); add(label,BorderLayout.SOUTH); // add(new Board(label),BorderLayout.CENTER); add(new Board(),BorderLayout.CENTER); setVisible(true); } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here new Skeleton(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -