Изменено название класса
This commit is contained in:
parent
bcca5be3f1
commit
a201dbeeb1
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="FormCar">
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="FormArmoredCar">
|
||||
<grid id="27dc6" binding="mainPanel" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
@ -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);
|
@ -1,8 +1,5 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Program {
|
||||
public static void main(String[] args) {
|
||||
new FormCar();
|
||||
new FormArmoredCar();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user