import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import java.text.*;
public class HW78 extends JFrame {
static final int SIZE = 9, BOMBCNT = 10;
JLabel[][] cell = new JLabel[SIZE][SIZE];
JLabel info = new JLabel();
JButton btn = new JButton("開始");
int[][] attCM, figCM;
Set bombSet = new HashSet(), noneSet = new HashSet();
PanelAction action = new PanelAction();
boolean endFlag;
static ChoiceFormat cfOpen = new ChoiceFormat(
"0# |1#1|2#2|3#3|4#4|5#6|6#6|7#7|8#8|9#9|10#爆");
static ChoiceFormat cfClose = new ChoiceFormat("0# |1# |2#危|3#印");
static final int NONE = 0, BOMB = 10;
static final int CLOSE = 0, OPEN = 1, DENG = 2, MARK = 3;
static final int NEXT = 0, CLEAR = 1, OVER = 2;
static final Point[] AROUND = new Point[] { new Point(0, -1), new Point(-1, -1),
new Point(-1, 0), new Point(-1, 1), new Point(0, 1), new Point(1, 1),
new Point(1, 0), new Point(1, -1) };
public static void main(String[] args) {
new HW78();
}