Лабораторная работа №1 ГОТОВО
This commit is contained in:
parent
9fb0c70d1f
commit
0315cd64dd
@ -11,7 +11,7 @@ public class FormAntiAircraftGun extends JFrame {
|
||||
private Dimension dimension;
|
||||
private int Width, Height;
|
||||
private CanvasAntiAircraftGun canvasAntiAircraftGun = new CanvasAntiAircraftGun();
|
||||
private JButton CreateButton = new JButton("Create");;
|
||||
private JButton CreateButton = new JButton("Создать");;
|
||||
private JButton UpButton = new JButton();
|
||||
private JButton DownButton = new JButton();;
|
||||
private JButton LeftButton = new JButton();;
|
||||
@ -28,17 +28,17 @@ public class FormAntiAircraftGun extends JFrame {
|
||||
Height = getHeight() - 35;
|
||||
|
||||
CreateButton.setName("CREATE");
|
||||
Icon iconUp = new ImageIcon("src\\images\\up.jpg");
|
||||
Icon iconUp = new ImageIcon("src/images/up.jpg");
|
||||
UpButton.setIcon(iconUp);
|
||||
UpButton.setName("UP");
|
||||
DownButton.setName("DOWN");
|
||||
Icon iconDown = new ImageIcon("src\\images\\down.jpg");
|
||||
Icon iconDown = new ImageIcon("src/images/down.jpg");
|
||||
DownButton.setIcon(iconDown);
|
||||
LeftButton.setName("LEFT");
|
||||
Icon iconLeft = new ImageIcon("src\\images\\left.jpg");
|
||||
Icon iconLeft = new ImageIcon("src/images/left.jpg");
|
||||
LeftButton.setIcon(iconLeft);
|
||||
RightButton.setName("RIGHT");
|
||||
Icon iconRight = new ImageIcon("src\\images\\right.jpg");
|
||||
Icon iconRight = new ImageIcon("src/images/right.jpg");
|
||||
RightButton.setIcon(iconRight);
|
||||
|
||||
CreateButton.addActionListener(new ActionListener() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user