首页 > 代码库 > java 简单的扫雷游戏

java 简单的扫雷游戏

//扫雷游戏
package Bible001;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Mine extends MouseAdapter {

	private JFrame mainFrame;
	private int[][] data;
	private JButton[][] buttons;
	private JButton startJB;
	private Label l;
	private int row;
	private int col;
	private int mineNumber;
	private int mineCount;
	private boolean isOver;
	public Mine(){
		row=15;
		col=15;
		mainFrame=new JFrame("扫雷v1.0");
		data=http://www.mamicode.com/new int[row][col];>

java 简单的扫雷游戏