PIbd-11_Gulina_V.S._LabWork01_Hard #1

Closed
victinass wants to merge 2 commits from LabWork01 into main
5 changed files with 4 additions and 4 deletions
Showing only changes of commit 5bfa75169f - Show all commits

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() {