From 1c91b62c049c7de8eb154a21dedf02c249af1ef5 Mon Sep 17 00:00:00 2001 From: AnnaLioness Date: Tue, 10 Oct 2023 13:11:02 +0400 Subject: [PATCH 1/2] =?UTF-8?q?=D0=BB=D0=B0=D0=B11=20=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D0=B0=D1=8F=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=20=D1=82=D0=BE=D1=87=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Form1.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Form1.java b/Form1.java index 86ee3e8..8e832a9 100644 --- a/Form1.java +++ b/Form1.java @@ -17,25 +17,25 @@ public class Form1 { up.setFocusPainted(false); up.setContentAreaFilled(false); up.setName("up"); - up.setIcon(new ImageIcon("photo11.png")); + up.setIcon(new ImageIcon("D:\\рабочий стол\\рпп\\лаб1.репозит.сложная\\PIbd21.LyovushkinaA.A.Container_ship.Complicated\\photo11.png")); JButton down = new JButton(); down.setBorderPainted(false); down.setFocusPainted(false); down.setContentAreaFilled(false); down.setName("down"); - down.setIcon(new ImageIcon("photo33.png")); + down.setIcon(new ImageIcon("D:\\рабочий стол\\рпп\\лаб1.репозит.сложная\\PIbd21.LyovushkinaA.A.Container_ship.Complicated\\photo33.png")); JButton left = new JButton(); left.setBorderPainted(false); left.setFocusPainted(false); left.setContentAreaFilled(false); left.setName("left"); - left.setIcon(new ImageIcon("photo44.png")); + left.setIcon(new ImageIcon("D:\\рабочий стол\\рпп\\лаб1.репозит.сложная\\PIbd21.LyovushkinaA.A.Container_ship.Complicated\\photo44.png")); JButton right = new JButton(); right.setBorderPainted(false); right.setFocusPainted(false); right.setContentAreaFilled(false); right.setName("right"); - right.setIcon(new ImageIcon("photo22.png")); + right.setIcon(new ImageIcon("D:\\рабочий стол\\рпп\\лаб1.репозит.сложная\\PIbd21.LyovushkinaA.A.Container_ship.Complicated\\photo22.png")); buttonCreate.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e){ From 53064877f62ca0b08cfeb9b258e76913407571bb Mon Sep 17 00:00:00 2001 From: AnnaLioness Date: Fri, 20 Oct 2023 18:55:41 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=D0=B8=D0=B7=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Form1.java => FormContainerShip.java | 4 ++-- Main.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Form1.java => FormContainerShip.java (98%) diff --git a/Form1.java b/FormContainerShip.java similarity index 98% rename from Form1.java rename to FormContainerShip.java index 8e832a9..e25f5ae 100644 --- a/Form1.java +++ b/FormContainerShip.java @@ -2,14 +2,14 @@ import java.awt.*; import java.util.*; import javax.swing.*; import java.awt.event.*; -public class Form1 { +public class FormContainerShip { private DrawingContainerShip _drawingShip; Canvas canv; public void Draw(){ canv.repaint(); } - public Form1(){ + public FormContainerShip(){ JFrame w=new JFrame ("ContainerShip"); JButton buttonCreate = new JButton("создать"); JButton up = new JButton(); diff --git a/Main.java b/Main.java index 6402b78..cffdba4 100644 --- a/Main.java +++ b/Main.java @@ -1,5 +1,5 @@ public class Main { public static void main(String[] args){ - Form1 form1 = new Form1(); + FormContainerShip form1 = new FormContainerShip(); } }