Фикс
This commit is contained in:
parent
6f4b0f7602
commit
968c6c6752
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user