From 1d7e6e80a0762eded4b4f8006e030801ba399635 Mon Sep 17 00:00:00 2001 From: Zhelovanov_Dmitrii Date: Thu, 22 Dec 2022 21:55:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'FormMapWithSetBattleship.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FormMapWithSetBattleship.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FormMapWithSetBattleship.java b/FormMapWithSetBattleship.java index f9ecbbc..63d827f 100644 --- a/FormMapWithSetBattleship.java +++ b/FormMapWithSetBattleship.java @@ -89,9 +89,9 @@ public class FormMapWithSetBattleship extends JComponent { e.printStackTrace(); } - JButton deleteAirbusButton = new JButton("Удалить корабль"); + JButton deleteBattleshipButton = new JButton("Удалить корабль"); JFormattedTextField finalMaskedTextFieldPosition = maskedTextFieldPosition; - deleteAirbusButton.addActionListener(e -> { + deleteBattleshipButton.addActionListener(e -> { if ((String)mapSelectComboBox.getSelectedItem() == null) { return; } @@ -108,7 +108,7 @@ public class FormMapWithSetBattleship extends JComponent { JOptionPane.showMessageDialog(form, "Объект не удален", "Удаление", JOptionPane.OK_CANCEL_OPTION); } }); - statusPanel.add(deleteAirbusButton); + statusPanel.add(deleteBattleshipButton); JButton showStorageButton = new JButton("Хранилище"); showStorageButton.addActionListener(e -> {