Добавила стрелки

This commit is contained in:
victinass 2024-04-29 12:13:24 +04:00
parent 141801a3a7
commit 5bfa75169f
5 changed files with 4 additions and 4 deletions

BIN
src/res/arrowDown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
src/res/arrowLeft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

BIN
src/res/arrowRight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

BIN
src/res/arrowUp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

View File

@ -28,17 +28,17 @@ public class FormBattleship extends JFrame {
Height = getHeight() - 35;
CreateButton.setName("CREATE");
Icon iconUp = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowUp.png");
Icon iconUp = new ImageIcon("src/res/arrowUp.png");
UpButton.setIcon(iconUp);
UpButton.setName("Up");
DownButton.setName("Down");
Icon iconDown = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowDown.png");
Icon iconDown = new ImageIcon("src/res/arrowDown.png");
DownButton.setIcon(iconDown);
LeftButton.setName("Left");
Icon iconLeft = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowLeft.png");
Icon iconLeft = new ImageIcon("src/res/arrowLeft.png");
LeftButton.setIcon(iconLeft);
RightButton.setName("Right");
Icon iconRight = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowRight.png");
Icon iconRight = new ImageIcon("src/res/arrowRight.png");
RightButton.setIcon(iconRight);
CreateButton.addActionListener(new ActionListener() {