From 1a2a3ad90936d7316922dbeb85f3addde1417f6e Mon Sep 17 00:00:00 2001 From: BoiledMilk123 Date: Wed, 5 Jun 2024 09:10:08 +0400 Subject: [PATCH] fix labwork04 2 --- .../src/Forms/DrawingLocomotiveCollection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {