diff --git a/Tank/src/FormTank.java b/Tank/src/FormTank.java index d070890..4e935d3 100644 --- a/Tank/src/FormTank.java +++ b/Tank/src/FormTank.java @@ -58,12 +58,11 @@ public class FormTank { down.setIcon(iconDown); JButton left = new JButton(); - left.setName("left"); ImageIcon iconLeft = new ImageIcon("Tank//Resources//KeyLeft.png"); left.setIcon(iconLeft); - JButton right = new JButton(); + JButton right = new JButton(); right.setName("right"); ImageIcon iconRight = new ImageIcon("Tank//Resources//KeyRight.png"); right.setIcon(iconRight);