фиксик
This commit is contained in:
parent
35d781923f
commit
4b1b74674c
@ -31,7 +31,7 @@ public class HardGeneric <T extends EntityBus,U extends IDraw> {
|
||||
pictureBoxWidth = width;
|
||||
}
|
||||
|
||||
public boolean insertBus(T bus) {
|
||||
public boolean Add(T bus) {
|
||||
if (bus == null) {
|
||||
return false;
|
||||
}
|
||||
@ -42,7 +42,7 @@ public class HardGeneric <T extends EntityBus,U extends IDraw> {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean insertDoor(U door) {
|
||||
public boolean Add(U door) {
|
||||
if (door == null) {
|
||||
return false;
|
||||
}
|
||||
|
@ -59,8 +59,8 @@ public class HardForm extends JFrame {
|
||||
HardGeneric<EntityBus, IDraw> objectGenerator = new HardGeneric<>(size, size, pictureBoxWidth, pictureBoxHeight);
|
||||
for (int i = 0; i < size; i++) {
|
||||
EntityBus ent = createRandomEntityBus();
|
||||
objectGenerator.insertBus(ent);
|
||||
objectGenerator.insertDoor(createDrawningDoor());
|
||||
objectGenerator.Add(ent);
|
||||
objectGenerator.Add(createDrawningDoor());
|
||||
}
|
||||
createObjectButton.addActionListener(
|
||||
new ActionListener() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user