public BattleField(final boolean isMyField) {

		this.isMyField = isMyField;
		buttons = new JButton[size][size];
		status = new Status[size][size];

		setLayout(new GridLayout(size, size));

		for (int i = 0; i < size; ++i)
			for (int j = 0; j < size; ++j) {
				status[i][j] = Status.EMPTY;
				buttons[i][j] = new JButton(
						ResourceUtil.getIcon(ResourceUtil.RESOURCE_EMPTY_FIELD));
				buttons[i][j].setToolTipText(String.valueOf(letters[j])
						+ (i + 1));
				buttons[i][j].setBorder(BorderFactory
						.createBevelBorder(BevelBorder.RAISED));

				final int I = i;
				final int J = j;

				buttons[i][j].addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						if (!isMyField
								&& Player.getGameStatus().equals(Status.GAME)
								&& Player.isMyTurn()) {

							try {
								Player.sendMessage(Message.TITLE_SHOOT, I
										+ Message.BODY_SPLITTER + J);
								Player.setLastAttacked(new Point(I, J));
								Player.setGameStatus(Status.WAITING);

							} catch (IOException e) {

								e.printStackTrace();
							}

						}

					}
				});
				add(buttons[i][j]);
			}
	}