From 3f27d54ee7e283f3721a9fedab42144bdfe3a93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=91=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=D0=BD=D0=B8=D0=BD?= Date: Sun, 12 Nov 2023 16:04:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/src/FormTank.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tank/src/FormTank.java b/Tank/src/FormTank.java index cf2130c..47d70b9 100644 --- a/Tank/src/FormTank.java +++ b/Tank/src/FormTank.java @@ -26,7 +26,7 @@ public class FormTank { private AbstractStrategy abstractStrategy; Canvas canv; static int pictureBoxWidth = 980; - static int pictureBoxHeight = 570; + static int pictureBoxHeight = 560; public JButton buttonSelectTank; public JFrame Frame; @@ -37,7 +37,7 @@ public class FormTank { public FormTank() { SelectedVehicle = null; Frame = new JFrame("Tank"); - JButton buttonCreate = new JButton("Добавить бронетехнику"); + JButton buttonCreateArmoVehicle = new JButton("Добавить бронетехнику"); JButton buttonCreateTank = new JButton("Добавить танк"); JButton buttonStrategysStep = new JButton("Шаг"); buttonSelectTank = new JButton("Добавить"); @@ -139,7 +139,7 @@ public class FormTank { } } ); - buttonCreate.addActionListener( + buttonCreateArmoVehicle.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { Random random = new Random(); @@ -195,7 +195,7 @@ public class FormTank { Frame.setLayout(null); canv = new Canvas(); canv.setBounds(0, 0, pictureBoxWidth, pictureBoxHeight); - buttonCreate.setBounds(2, 520, 180, 40); + buttonCreateArmoVehicle.setBounds(2, 520, 180, 40); buttonCreateTank.setBounds(185, 520, 150, 40); up.setBounds(900, 480, 40, 40); down.setBounds(900, 520, 40, 40); @@ -206,7 +206,7 @@ public class FormTank { buttonSelectTank.setBounds(pictureBoxWidth / 2, 530, 150, 30); Frame.add(buttonSelectTank); Frame.add(canv); - Frame.add(buttonCreate); + Frame.add(buttonCreateArmoVehicle); Frame.add(buttonCreateTank); Frame.add(up); Frame.add(down);