Лабораторная работа №5

This commit is contained in:
DjonniStorm 2024-06-11 01:13:51 +04:00
parent f6d2369ac6
commit f055ae0ad9
3 changed files with 1 additions and 5 deletions

View File

@ -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);
});

View File

@ -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;
}

View File

@ -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);
}
}