Добавила стрелки
This commit is contained in:
parent
141801a3a7
commit
5bfa75169f
BIN
src/res/arrowDown.png
Normal file
BIN
src/res/arrowDown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 699 B |
BIN
src/res/arrowLeft.png
Normal file
BIN
src/res/arrowLeft.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 713 B |
BIN
src/res/arrowRight.png
Normal file
BIN
src/res/arrowRight.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 711 B |
BIN
src/res/arrowUp.png
Normal file
BIN
src/res/arrowUp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 687 B |
@ -28,17 +28,17 @@ public class FormBattleship extends JFrame {
|
|||||||
Height = getHeight() - 35;
|
Height = getHeight() - 35;
|
||||||
|
|
||||||
CreateButton.setName("CREATE");
|
CreateButton.setName("CREATE");
|
||||||
Icon iconUp = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowUp.png");
|
Icon iconUp = new ImageIcon("src/res/arrowUp.png");
|
||||||
UpButton.setIcon(iconUp);
|
UpButton.setIcon(iconUp);
|
||||||
UpButton.setName("Up");
|
UpButton.setName("Up");
|
||||||
DownButton.setName("Down");
|
DownButton.setName("Down");
|
||||||
Icon iconDown = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowDown.png");
|
Icon iconDown = new ImageIcon("src/res/arrowDown.png");
|
||||||
DownButton.setIcon(iconDown);
|
DownButton.setIcon(iconDown);
|
||||||
LeftButton.setName("Left");
|
LeftButton.setName("Left");
|
||||||
Icon iconLeft = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowLeft.png");
|
Icon iconLeft = new ImageIcon("src/res/arrowLeft.png");
|
||||||
LeftButton.setIcon(iconLeft);
|
LeftButton.setIcon(iconLeft);
|
||||||
RightButton.setName("Right");
|
RightButton.setName("Right");
|
||||||
Icon iconRight = new ImageIcon("C:\\Users\\Админ\\Downloads\\arrowRight.png");
|
Icon iconRight = new ImageIcon("src/res/arrowRight.png");
|
||||||
RightButton.setIcon(iconRight);
|
RightButton.setIcon(iconRight);
|
||||||
|
|
||||||
CreateButton.addActionListener(new ActionListener() {
|
CreateButton.addActionListener(new ActionListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user