Лабораторная работа №5
This commit is contained in:
parent
f6d2369ac6
commit
f055ae0ad9
@ -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);
|
||||
});
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user