Compare commits

...

2 Commits

Author SHA1 Message Date
615abc0bca Update FormStormtrooperCollection.java
fix
2024-05-12 13:04:57 +04:00
4ea097cdb5 лаб4 2024-04-28 13:45:08 +04:00

View File

@ -15,7 +15,6 @@ public class FormStormtrooperCollection extends JFrame {
private Dimension dimension;
public static CanvasFormStormtrooperCollection<DrawingBaseStormtrooper> _canvasStormtrooper = new CanvasFormStormtrooperCollection<DrawingBaseStormtrooper>();
private static AbstractCompany _company = null;
private Queue<DrawingBaseStormtrooper> _collectionRemovedObjects = new LinkedList<>();
private StorageCollection<DrawingBaseStormtrooper> _storageCollection = new StorageCollection<DrawingBaseStormtrooper>();
private JTextField textBoxCollection = new JTextField();
@ -61,7 +60,6 @@ public class FormStormtrooperCollection extends JFrame {
boolean rockets = new Random().nextBoolean();
boolean bombs = new Random().nextBoolean();
boolean engines = new Random().nextBoolean();
int typeOfEngine = ((int) ((Math.random() * 3) + 1));
drawingBaseStormtrooper = new DrawingStormtrooper(speed, weight, bodyColor, additionalColor, rockets, bombs, engines, typeOfEngine);
break;
@ -97,7 +95,6 @@ public class FormStormtrooperCollection extends JFrame {
CreateObject("DrawingBaseStormtrooper");
}
});
createButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@ -176,8 +173,6 @@ public class FormStormtrooperCollection extends JFrame {
}
});
buttonAddCollection.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {