diff --git a/src/Main.java b/src/Main.java index 96feeb9..0818708 100644 --- a/src/Main.java +++ b/src/Main.java @@ -14,10 +14,14 @@ public class Main { AirplaneWithRadarFrame.setResizable(false); DrawningAirplaneWithRadar DrawningEntityAirplaneWithRadar = new DrawningAirplaneWithRadar(); AirplaneWithRadarPanel.setLayout(null); - JButton RightButton = new JButton("→"); - JButton LeftButton = new JButton("←"); - JButton UpButton = new JButton("↑"); - JButton DownButton = new JButton("↓"); + BufferedImage RightIcon = ImageIO.read(new File("RightButton.png")); + BufferedImage LeftIcon = ImageIO.read(new File("LeftButton.png")); + BufferedImage UpIcon = ImageIO.read(new File("UpButton.png")); + BufferedImage DownIcon = ImageIO.read(new File("DownButton.png")); + JButton RightButton = new JButton(new ImageIcon(RightIcon)); + JButton LeftButton = new JButton(new ImageIcon(LeftIcon)); + JButton UpButton = new JButton(new ImageIcon(UpIcon)); + JButton DownButton = new JButton(new ImageIcon(DownIcon)); JButton CreateButton = new JButton(); CreateButton.setText("Создать"); CreateButton.setBounds(12, 401, 90, 40);