From 0fc01401f28b65b7f41c44f6e9d2dc4b954243f4 Mon Sep 17 00:00:00 2001 From: Nastya_Kozlova Date: Sun, 24 Dec 2023 01:19:03 +0400 Subject: [PATCH] =?UTF-8?q?1=20=D0=BB=D0=B0=D0=B1=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=202=202.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirFighter/src/FrameAirFighter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AirFighter/src/FrameAirFighter.java b/AirFighter/src/FrameAirFighter.java index f48485e..ab1fa69 100644 --- a/AirFighter/src/FrameAirFighter.java +++ b/AirFighter/src/FrameAirFighter.java @@ -37,7 +37,7 @@ public class FrameAirFighter extends JFrame { downButton.addActionListener(this::buttonMoveClick); //component addition setLayout(new BorderLayout()); - JPanel panelBattleship = new JPanel(new BorderLayout()); + JPanel panelAirFighter = new JPanel(new BorderLayout()); JPanel createPanel = new JPanel(new BorderLayout()); createPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2)); createPanel.add(createButton, BorderLayout.SOUTH); @@ -63,9 +63,9 @@ public class FrameAirFighter extends JFrame { constraints.gridy = 1; movementPanel.add(downButton, constraints); add(pictureBox); - panelBattleship.add(rightPanel, BorderLayout.EAST); - panelBattleship.add(createPanel, BorderLayout.WEST); - add(panelBattleship,BorderLayout.CENTER); + panelAirFighter.add(rightPanel, BorderLayout.EAST); + panelAirFighter.add(createPanel, BorderLayout.WEST); + add(panelAirFighter,BorderLayout.CENTER); setVisible(true); } private void buttonCreateClick() {