From a201dbeeb14f7b311c0538b472de6d1cf73ceeb3 Mon Sep 17 00:00:00 2001 From: prodigygirl Date: Sat, 22 Oct 2022 20:42:40 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/{FormCar.form => FormArmoredCar.form} | 2 +- src/main/java/{FormCar.java => FormArmoredCar.java} | 4 ++-- src/main/java/Program.java | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) rename src/main/java/{FormCar.form => FormArmoredCar.form} (99%) rename src/main/java/{FormCar.java => FormArmoredCar.java} (98%) diff --git a/src/main/java/FormCar.form b/src/main/java/FormArmoredCar.form similarity index 99% rename from src/main/java/FormCar.form rename to src/main/java/FormArmoredCar.form index 3055d42..e82df6d 100644 --- a/src/main/java/FormCar.form +++ b/src/main/java/FormArmoredCar.form @@ -1,5 +1,5 @@ -
+ diff --git a/src/main/java/FormCar.java b/src/main/java/FormArmoredCar.java similarity index 98% rename from src/main/java/FormCar.java rename to src/main/java/FormArmoredCar.java index 4f95a8e..045cdaa 100644 --- a/src/main/java/FormCar.java +++ b/src/main/java/FormArmoredCar.java @@ -6,7 +6,7 @@ import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.util.Random; -public class FormCar extends JFrame{ +public class FormArmoredCar extends JFrame{ private JButton buttonUp; private JButton buttonDown; private JButton buttonRight; @@ -20,7 +20,7 @@ public class FormCar extends JFrame{ private DrawingArmoredCar armoredCar; - public FormCar() { + public FormArmoredCar() { super("Бронированная машина"); setBounds(100, 100, 700, 700); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/src/main/java/Program.java b/src/main/java/Program.java index 5182f41..2d1f91a 100644 --- a/src/main/java/Program.java +++ b/src/main/java/Program.java @@ -1,8 +1,5 @@ -import javax.swing.*; -import java.awt.*; - public class Program { public static void main(String[] args) { - new FormCar(); + new FormArmoredCar(); } }