Compare commits
2 Commits
648d42871e
...
615abc0bca
Author | SHA1 | Date | |
---|---|---|---|
615abc0bca | |||
4ea097cdb5 |
@ -15,7 +15,6 @@ public class FormStormtrooperCollection extends JFrame {
|
|||||||
private Dimension dimension;
|
private Dimension dimension;
|
||||||
public static CanvasFormStormtrooperCollection<DrawingBaseStormtrooper> _canvasStormtrooper = new CanvasFormStormtrooperCollection<DrawingBaseStormtrooper>();
|
public static CanvasFormStormtrooperCollection<DrawingBaseStormtrooper> _canvasStormtrooper = new CanvasFormStormtrooperCollection<DrawingBaseStormtrooper>();
|
||||||
private static AbstractCompany _company = null;
|
private static AbstractCompany _company = null;
|
||||||
|
|
||||||
private Queue<DrawingBaseStormtrooper> _collectionRemovedObjects = new LinkedList<>();
|
private Queue<DrawingBaseStormtrooper> _collectionRemovedObjects = new LinkedList<>();
|
||||||
private StorageCollection<DrawingBaseStormtrooper> _storageCollection = new StorageCollection<DrawingBaseStormtrooper>();
|
private StorageCollection<DrawingBaseStormtrooper> _storageCollection = new StorageCollection<DrawingBaseStormtrooper>();
|
||||||
private JTextField textBoxCollection = new JTextField();
|
private JTextField textBoxCollection = new JTextField();
|
||||||
@ -61,7 +60,6 @@ public class FormStormtrooperCollection extends JFrame {
|
|||||||
boolean rockets = new Random().nextBoolean();
|
boolean rockets = new Random().nextBoolean();
|
||||||
boolean bombs = new Random().nextBoolean();
|
boolean bombs = new Random().nextBoolean();
|
||||||
boolean engines = new Random().nextBoolean();
|
boolean engines = new Random().nextBoolean();
|
||||||
|
|
||||||
int typeOfEngine = ((int) ((Math.random() * 3) + 1));
|
int typeOfEngine = ((int) ((Math.random() * 3) + 1));
|
||||||
drawingBaseStormtrooper = new DrawingStormtrooper(speed, weight, bodyColor, additionalColor, rockets, bombs, engines, typeOfEngine);
|
drawingBaseStormtrooper = new DrawingStormtrooper(speed, weight, bodyColor, additionalColor, rockets, bombs, engines, typeOfEngine);
|
||||||
break;
|
break;
|
||||||
@ -97,7 +95,6 @@ public class FormStormtrooperCollection extends JFrame {
|
|||||||
CreateObject("DrawingBaseStormtrooper");
|
CreateObject("DrawingBaseStormtrooper");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
createButton.addActionListener(new ActionListener() {
|
createButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
@ -176,8 +173,6 @@ public class FormStormtrooperCollection extends JFrame {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
buttonAddCollection.addActionListener(new ActionListener() {
|
buttonAddCollection.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user