Лабораторная работа №5
This commit is contained in:
parent
f6d2369ac6
commit
f055ae0ad9
@ -87,7 +87,6 @@ public class FormCleaningCarCollection extends JFrame{
|
|||||||
//ButtonAddTruck_Click
|
//ButtonAddTruck_Click
|
||||||
buttonAddTruck.addActionListener(e -> {
|
buttonAddTruck.addActionListener(e -> {
|
||||||
FormTruckConfig form = new FormTruckConfig();
|
FormTruckConfig form = new FormTruckConfig();
|
||||||
form.Init();
|
|
||||||
form.setVisible(true);
|
form.setVisible(true);
|
||||||
form.SetCompany(_company);
|
form.SetCompany(_company);
|
||||||
});
|
});
|
||||||
|
@ -252,7 +252,6 @@ public class FormTruckConfig extends JFrame {
|
|||||||
JOptionPane.showMessageDialog(null, "Не удалось добавить объект");
|
JOptionPane.showMessageDialog(null, "Не удалось добавить объект");
|
||||||
}
|
}
|
||||||
dispose();
|
dispose();
|
||||||
_company = null;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -333,7 +332,7 @@ public class FormTruckConfig extends JFrame {
|
|||||||
|
|
||||||
private class WheelsTransferable implements Transferable {
|
private class WheelsTransferable implements Transferable {
|
||||||
private IDrawningWheels wheels;
|
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) {
|
public WheelsTransferable(IDrawningWheels wheels) {
|
||||||
this.wheels = wheels;
|
this.wheels = wheels;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,5 @@ class Main {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
FormCleaningCarCollection form = new FormCleaningCarCollection();
|
FormCleaningCarCollection form = new FormCleaningCarCollection();
|
||||||
form.setVisible(true);
|
form.setVisible(true);
|
||||||
// FormTruckConfig config = new FormTruckConfig();
|
|
||||||
// config.setVisible(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user