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

This commit is contained in:
Никита Белянин 2023-11-12 22:19:57 +04:00
parent 6468ed2e2b
commit 4680a5586a

View File

@ -105,6 +105,7 @@ public class FormTank {
} }
} }
); );
buttonCreateTank.addActionListener( buttonCreateTank.addActionListener(
new ActionListener() { new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -139,6 +140,7 @@ public class FormTank {
} }
} }
); );
buttonCreateArmoVehicle.addActionListener( buttonCreateArmoVehicle.addActionListener(
new ActionListener() { new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -186,6 +188,7 @@ public class FormTank {
Draw(); Draw();
} }
}; };
up.addActionListener(actioListener); up.addActionListener(actioListener);
down.addActionListener(actioListener); down.addActionListener(actioListener);
left.addActionListener(actioListener); left.addActionListener(actioListener);