diff --git a/ProjectCleaningCar/src/FormCleaningCarCollection.java b/ProjectCleaningCar/src/FormCleaningCarCollection.java index 6503f86..07e278f 100644 --- a/ProjectCleaningCar/src/FormCleaningCarCollection.java +++ b/ProjectCleaningCar/src/FormCleaningCarCollection.java @@ -87,7 +87,6 @@ public class FormCleaningCarCollection extends JFrame{ //ButtonAddTruck_Click buttonAddTruck.addActionListener(e -> { FormTruckConfig form = new FormTruckConfig(); - form.Init(); form.setVisible(true); form.SetCompany(_company); }); diff --git a/ProjectCleaningCar/src/FormTruckConfig.java b/ProjectCleaningCar/src/FormTruckConfig.java index 7d52f04..72e7f64 100644 --- a/ProjectCleaningCar/src/FormTruckConfig.java +++ b/ProjectCleaningCar/src/FormTruckConfig.java @@ -252,7 +252,6 @@ public class FormTruckConfig extends JFrame { JOptionPane.showMessageDialog(null, "Не удалось добавить объект"); } dispose(); - _company = null; } }); @@ -333,7 +332,7 @@ public class FormTruckConfig extends JFrame { private class WheelsTransferable implements Transferable { private IDrawningWheels wheels; - private static final DataFlavor wheelsDataFlavor = new DataFlavor(IDrawningWheels.class, "Decks"); + private static final DataFlavor wheelsDataFlavor = new DataFlavor(IDrawningWheels.class, "Wheels"); public WheelsTransferable(IDrawningWheels wheels) { this.wheels = wheels; } diff --git a/ProjectCleaningCar/src/Main.java b/ProjectCleaningCar/src/Main.java index c380aac..aff5e87 100644 --- a/ProjectCleaningCar/src/Main.java +++ b/ProjectCleaningCar/src/Main.java @@ -3,7 +3,5 @@ class Main { public static void main(String[] args) { FormCleaningCarCollection form = new FormCleaningCarCollection(); form.setVisible(true); -// FormTruckConfig config = new FormTruckConfig(); -// config.setVisible(true); } } \ No newline at end of file