Java开发小游戏——扫雷

Java68

代码如下:

```java
package com.game.saolei;

import javax.swing.;
import java.awt.
;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;

public class SaoLeiTest implements ActionListener {
//游戏启动;
public static void main(String[] args) {
new SaoLeiTest();
}
JFrame jFrame=new JFrame();
ImageIcon icon=new ImageIcon("src/com/game/saolei/image/index.png");
ImageIcon gussn=new ImageIcon("src/com/game/saolei/image/gussn.jpg");
ImageIcon bao=new ImageIcon("src/com/game/saolei/image/baozha.jpg");

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长