Готовая лабораторная работа 3

This commit is contained in:
Никита Белянин 2023-11-12 16:14:09 +04:00
parent cfb1286b87
commit f36e6da08d

View File

@ -38,7 +38,7 @@ public class FormTankCollection {
form.buttonSelectTank.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (_tank.Add(form._drawingTank) != -1) {
if (_tank.Add(form._drawingVehicle) != -1) {
JOptionPane.showMessageDialog(null, "Объект добавлен", "Информация", JOptionPane.INFORMATION_MESSAGE);
Draw();
} else {