gameoverpanel.java.bak

来自「一个用java编写的贪吃蛇升级版手机游戏」· BAK 代码 · 共 21 行

BAK
21
字号
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class GameOverPanel extends JPanel 
{
	private Icon gameoverPicture ;
	public GameOverPanel()
	{
		gameoverPicture = new ImageIcon( "GAMEOVER.png" );
		setSize(860,480);
		setLocation(80,20);
	}
	   public void paint( Graphics g )
   {
      gameoverPicture.paintIcon( this, g, -10, 0 );
   }

   
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?