diff --git a/ProjectElectricLocomotive/src/Forms/DrawingLocomotiveCollection.java b/ProjectElectricLocomotive/src/Forms/DrawingLocomotiveCollection.java index ef0c6f3..cc2fbd8 100644 --- a/ProjectElectricLocomotive/src/Forms/DrawingLocomotiveCollection.java +++ b/ProjectElectricLocomotive/src/Forms/DrawingLocomotiveCollection.java @@ -3,8 +3,8 @@ package ProjectElectricLocomotive.src.Forms; import ProjectElectricLocomotive.src.CollectionGenericObjects.*; import ProjectElectricLocomotive.src.Drawnings.DrawingElectricLocomotive; import ProjectElectricLocomotive.src.Drawnings.DrawingLocomotive; -import java.util.Queue; -import java.util.Stack; + +import java.util.LinkedList; import javax.swing.*; import java.awt.*; @@ -15,14 +15,14 @@ public class DrawingLocomotiveCollection extends JPanel private final FormLocomotiveCollection field; private AbstractCompany _company = null; - private Stack delLocomotive; + private LinkedList delLocomotive; private final StorageCollection storageCollection; public DrawingLocomotiveCollection(FormLocomotiveCollection field) { this.field = field; storageCollection = new StorageCollection(); - delLocomotive = new Stack(); + delLocomotive = new LinkedList(); } void comboBoxSelectorCompany_SelectedIndexChanged(String text) {