diff --git a/laba1Loco/Form1.java b/laba1Loco/FormTrain.java similarity index 98% rename from laba1Loco/Form1.java rename to laba1Loco/FormTrain.java index 6ad7e67..1e9ad91 100644 --- a/laba1Loco/Form1.java +++ b/laba1Loco/FormTrain.java @@ -6,7 +6,7 @@ import javax.swing.*; import javax.swing.Timer; import java.awt.event.*; -public class Form1{ +public class FormTrain{ private DrawingLoco _drawingLoco; Canvas canv; @@ -14,7 +14,7 @@ public class Form1{ canv.repaint(); } - public Form1(){ + public FormTrain(){ JFrame w=new JFrame ("Loco"); JButton buttonCreate = new JButton("create"); JButton up = new JButton(); diff --git a/laba1Loco/Main.java b/laba1Loco/Main.java index 21414f2..3367941 100644 --- a/laba1Loco/Main.java +++ b/laba1Loco/Main.java @@ -2,6 +2,6 @@ package laba1Loco; public class Main{ public static void main(String[] args) { - Form1 form1 = new Form1(); + FormTrain formTrain = new FormTrain(); } } \ No newline at end of file