From 968c6c6752112f43dcd9a451c055a53e3e458fe3 Mon Sep 17 00:00:00 2001 From: GokaPek <109132407+GokaPek@users.noreply.github.com> Date: Tue, 26 Sep 2023 21:59:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Form.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Form.java b/Form.java index 8ab0c6b..62b5294 100644 --- a/Form.java +++ b/Form.java @@ -58,6 +58,8 @@ public class Form extends JFrame { buttonUp.setBounds(804, 336, 30, 30); mainPanel.add(buttonUp); + ImageIcon iconUp = new ImageIcon("Arrows/upper-arrow.png"); + buttonUp.setIcon(iconUp); buttonUp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { buttonMoveActionPerformed(buttonUp, e); @@ -66,6 +68,8 @@ public class Form extends JFrame { buttonDown.setBounds(804, 409, 30, 30); mainPanel.add(buttonDown); + ImageIcon iconDown = new ImageIcon("Arrows/down-arrow.png"); + buttonDown.setIcon(iconDown); buttonDown.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { buttonMoveActionPerformed(buttonDown, e); @@ -74,6 +78,8 @@ public class Form extends JFrame { buttonLeft.setBounds(768, 372, 30, 30); mainPanel.add(buttonLeft); + ImageIcon iconLeft = new ImageIcon("Arrows/left-arrow.png"); + buttonLeft.setIcon(iconLeft); buttonLeft.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { buttonMoveActionPerformed(buttonLeft, e); @@ -82,6 +88,8 @@ public class Form extends JFrame { buttonRight.setBounds(840, 372, 30, 30); mainPanel.add(buttonRight); + ImageIcon iconRight = new ImageIcon("Arrows/right-arrow.png"); + buttonRight.setIcon(iconRight); buttonRight.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { buttonMoveActionPerformed(buttonRight, e);