This commit is contained in:
Timourka 2023-10-07 21:05:55 +04:00
parent b6967382fa
commit 815fc43a7d
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -2,6 +2,6 @@ package laba1Loco;
public class Main{
public static void main(String[] args) {
Form1 form1 = new Form1();
FormTrain formTrain = new FormTrain();
}
}