Готовая лабораторная 3
This commit is contained in:
parent
825bfb760a
commit
6468ed2e2b
@ -49,23 +49,23 @@ public class FormTank {
|
|||||||
});
|
});
|
||||||
JButton up = new JButton();
|
JButton up = new JButton();
|
||||||
up.setName("up");
|
up.setName("up");
|
||||||
ImageIcon iconUp = new ImageIcon("Resources//KeyUp.png");
|
ImageIcon iconUp = new ImageIcon("Tank//Resources//KeyUp.png");
|
||||||
up.setIcon(iconUp);
|
up.setIcon(iconUp);
|
||||||
|
|
||||||
JButton down = new JButton();
|
JButton down = new JButton();
|
||||||
down.setName("down");
|
down.setName("down");
|
||||||
ImageIcon iconDown = new ImageIcon("Resources//KeyDown.png");
|
ImageIcon iconDown = new ImageIcon("Tank//Resources//KeyDown.png");
|
||||||
down.setIcon(iconDown);
|
down.setIcon(iconDown);
|
||||||
|
|
||||||
JButton left = new JButton();
|
JButton left = new JButton();
|
||||||
|
|
||||||
left.setName("left");
|
left.setName("left");
|
||||||
ImageIcon iconLeft = new ImageIcon("Resources//KeyLeft.png");
|
ImageIcon iconLeft = new ImageIcon("Tank//Resources//KeyLeft.png");
|
||||||
left.setIcon(iconLeft);
|
left.setIcon(iconLeft);
|
||||||
JButton right = new JButton();
|
JButton right = new JButton();
|
||||||
|
|
||||||
right.setName("right");
|
right.setName("right");
|
||||||
ImageIcon iconRight = new ImageIcon("Resources//KeyRight.png");
|
ImageIcon iconRight = new ImageIcon("Tank//Resources//KeyRight.png");
|
||||||
right.setIcon(iconRight);
|
right.setIcon(iconRight);
|
||||||
|
|
||||||
buttonStrategysStep.addActionListener(
|
buttonStrategysStep.addActionListener(
|
||||||
|
Loading…
Reference in New Issue
Block a user